-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1516 from dhensby/pulls/pages
chore(ci): fix page branch update
- Loading branch information
Showing
2 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Update GitHub Pages | |
on: | ||
push: | ||
tags: | ||
- '**' | ||
|
||
jobs: | ||
pages: | ||
|
@@ -17,16 +18,18 @@ jobs: | |
fetch-depth: 0 | ||
persist-credentials: false | ||
path: release | ||
- name: Checkout and push to gh-pages | ||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
path: pages | ||
ref: gh-pages | ||
run: | | ||
cp ../release/README.md ./docs/index.md | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "docs: update docs for ${{ github.ref_name }}" | ||
git push | ||
- name: Update gh-pages branch with latest docs | ||
run: | | ||
cd "$GITHUB_WORKSPACE/pages" | ||
cp "$GITHUB_WORKSPACE/release/README.md" ./docs/index.md | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "docs: update docs for ${{ github.ref_name }}" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters