mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-14 15:47:12 +00:00
Remove branch gh-pages instead of push to branch now
This commit is contained in:
parent
f4cdc2a28c
commit
e7629e5ea1
4 changed files with 9 additions and 4 deletions
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
|
@ -6,7 +6,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: Deploy to Github Pages
|
||||
name: Deploy to now branch
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
5
now.json
Normal file
5
now.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"github": {
|
||||
"silent": true
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
set -e
|
||||
|
||||
CRATES_INDEX_PATH="/tmp/crates-index.js"
|
||||
BRANCH="gh-pages"
|
||||
BRANCH="now"
|
||||
|
||||
build() {
|
||||
echo "Starting building crates-index..."
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
BRANCH="gh-pages"
|
||||
BRANCH="now"
|
||||
|
||||
build() {
|
||||
echo "Starting building..."
|
||||
|
@ -23,7 +23,7 @@ deploy() {
|
|||
git config user.name "GitHub Actions"
|
||||
git config user.email "github-actions-bot@users.noreply.github.com"
|
||||
git add .
|
||||
git commit -m "Deploy new version to Github Pages"
|
||||
git commit -m "Deploy new version docs"
|
||||
git push --force "https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" ${BRANCH}
|
||||
|
||||
echo "Deploy complete"
|
||||
|
|
Loading…
Reference in a new issue