feat(main): Add sitemap integration #141
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: Deploy | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
TURBO_TEAM: ${{ secrets.VERCEL_TEAM }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/[email protected] | |
with: | |
version: 7.1.0 | |
run_install: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: 'pnpm' | |
- name: Remove development API routes | |
run: rm -r apps/main/pages/api | |
- run: pnpm turbo run test | |
- run: pnpm turbo run prebuild | |
- run: pnpm build --filter @apps/main^... | |
- uses: amondnet/vercel-action@v25 | |
with: | |
github-token: ${{ secrets.GH_TOKEN }} | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.ORG_ID }} | |
vercel-project-id: ${{ secrets.PROJECT_ID }} | |
vercel-args: '--prod' |