mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
The website fetches the latest release version at build time, so it needs to redeploy when a new release is published to pick up updated download links.
38 lines
856 B
YAML
38 lines
856 B
YAML
name: Deploy Website
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'packages/website/**'
|
|
- 'package.json'
|
|
- 'package-lock.json'
|
|
- 'patches/**'
|
|
- '.github/workflows/deploy-website.yml'
|
|
release:
|
|
types: [published, edited]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm install --workspace=@getpaseo/website --include-workspace-root
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck --workspace=@getpaseo/website
|
|
|
|
- name: Deploy to Cloudflare Workers
|
|
run: npm run deploy --workspace=@getpaseo/website
|
|
env:
|
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|