Fix action #2
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
on: [push] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
name: Publish to Cloudflare Pages | |
defaults: | |
run: | |
working-directory: frontend | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Add pnpm | |
run: yarn global add pnpm | |
- name: Install deps | |
run: pnpm install | |
- name: Vite build | |
run: pnpm build | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: a5854f55e71b087aa3a3bcdae74b2489 | |
projectName: combinator | |
directory: "./dist" | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
branch: master | |
wranglerVersion: "3" |