Merge pull request #3 from bitpay/SP-713 #7
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
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: publish | |
cancel-in-progress: true | |
jobs: | |
commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- run: npm install | |
- run: npm run build | |
- run: | | |
git config user.name "GitHub Actions" | |
git config user.email "" | |
git add -f docs/ | |
git commit -m "Update published build" || echo "No changes to commit" | |
git push |