pages235/.github/workflows/publish.yml
Vitaly 111188dcc9
ci: update vercel pipelines
preview: comment
prod: should be fixed
2023-09-16 05:39:24 +03:00

30 lines
1 KiB
YAML

name: Deploy to GitHub pages
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Install pnpm
run: npm i -g vercel pnpm
# - run: pnpm install
# - run: pnpm build
- run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
# will install + build to .vercel/output/static
- run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --prod
- run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --prod
- run: pnpx zardoy-release node
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .vercel/output/static
force_orphan: true