fix deploy process for permaweb #44
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: Publish docs on permaweb | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
publish-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js 20.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.1.0 | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm docs:build | |
- run: pnpm dlx permaweb-deploy --ant-process ${{ env.ANT_PROCESS }} --deploy-folder ./site/dist | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
ANT_PROCESS: "ymWaQ4Sc9myT0gx-Pc6BGSjJpl7AjGt7hEqMXCL9Q2k" |