Skip to content

Commit

Permalink
Merge pull request #1516 from dhensby/pulls/pages
Browse files Browse the repository at this point in the history
chore(ci): fix page branch update
  • Loading branch information
dhensby authored Jul 25, 2023
2 parents 315c47e + c13ad1f commit f384e0f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Update GitHub Pages
on:
push:
tags:
- '**'

jobs:
pages:
Expand All @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"lint": "standard",
"test-unit": "mocha --exit -t 15000 test/common/unit.js",
"test-tedious": "mocha --exit -t 15000 test/tedious",
"test-msnodesqlv8": "mocha --exit -t 15000 test/msnodesqlv8",
"test-msnodesqlv8": "mocha --exit -t 30000 test/msnodesqlv8",
"test-cli": "mocha --exit -t 15000 test/common/cli.js"
},
"bin": {
Expand Down

0 comments on commit f384e0f

Please sign in to comment.