Skip to content

Merge pull request #853 from privacy-scaling-explorations/feat/update… #3

Merge pull request #853 from privacy-scaling-explorations/feat/update…

Merge pull request #853 from privacy-scaling-explorations/feat/update… #3

Workflow file for this run

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