Skip to content

.github/workflows/pages.yml #243

.github/workflows/pages.yml

.github/workflows/pages.yml #243

Workflow file for this run

on:
push:
branches: ["main"]
workflow_run:
workflows: ["Update Warps"]
types:
- completed
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: |
git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://
- run: pnpm install --no-frozen-lockfile
- run: pnpm run prod
- run: cd out; echo > .nojekyll; cd ..
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out