Merge pull request #876 from privacy-scaling-explorations/fix/cli #8
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: [dev] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: "https://registry.npmjs.org" | |
- name: Run typedoc | |
run: | | |
npm install | |
npm run bootstrap | |
npm run build | |
npm run typedoc | |
- name: Fix typedoc links | |
run: | | |
npm install | |
npm run setup-typedoc | |
working-directory: website | |
- name: Build 🔧 | |
run: | | |
npm run build | |
working-directory: website | |
- name: Add CNAME | |
run: | | |
echo 'maci.pse.dev' > ./website/build/CNAME | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/dev' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./website/build |