CI workflows overhaul: Add bot vars for semantic release #6
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: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
deploy-gh-pages: | |
name: Deploying to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- run: sudo npm install -g yarn | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Build and deploy with gh-pages | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
yarn deploy -- -u "github-actions-bot <[email protected]>" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |