Update umami link #23
This file contains hidden or 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
| # build and deploy to gh-pages | |
| name: deploy | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| buildAndCommit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| - name: Install dependencies | |
| run: npm install | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: gh-pages | |
| path: gh-pages | |
| - name: Clear subfolder | |
| run: rm -rf gh-pages/* | |
| - uses: H0rn0chse/gh-pages-copy-action@main | |
| with: | |
| root: ${{ github.workspace }} | |
| - name: Commit gh-pages files | |
| continue-on-error: true | |
| working-directory: ./gh-pages | |
| run: | | |
| git config --local user.name 'github-actions[bot]' | |
| git config --local user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add -A | |
| git commit --amend -m "Build gh-pages" --author="github-actions[bot] <github-actions[bot]@users.noreply.github.com>" | |
| - name: Push changes | |
| continue-on-error: true | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: gh-pages | |
| directory: ./gh-pages | |
| force: true |