Automated commit from the Keep Repo Alive workflow #61
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: GitHub Pages | |
on: | |
push: | |
branches: | |
- trunk | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ 'pull_request' == github.event_name && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build:docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./web_deploy |