Skip to content

Add changeset

Add changeset #1057

Workflow file for this run

name: Website
on:
push:
jobs:
build-and-publish:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup
uses: ./.github/actions/setup
- name: Build Accented
run: pnpm --filter accented build
- name: Check
run: pnpm --filter website check
- name: Build website
run: pnpm website:build
env:
STAGE: ${{ github.ref == 'refs/heads/stage' }}
# - name: Install lychee
# if: github.ref != 'refs/heads/stage'
# uses: ./.github/actions/installLychee
# - name: Check links
# if: github.ref != 'refs/heads/stage'
# run: ./packages/website/scripts/checkLinks.mjs --local
# env:
# GITHUB_TOKEN: ${{ secrets.LINK_CHECK_TOKEN }}
- name: Run database migrations
if: github.ref == 'refs/heads/stage' || github.ref == 'refs/heads/main'
run: |
SITE_ID=${{ github.ref == 'refs/heads/stage' && vars.NETLIFY_STAGE_SITE_ID || vars.NETLIFY_SITE_ID }}
pnpm --filter website exec netlify link --id $SITE_ID
pnpm --filter website db:migrate
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- name: Deploy website
if: github.ref == 'refs/heads/stage' || github.ref == 'refs/heads/main'
run: pnpm website:deploy
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ github.ref == 'refs/heads/stage' && vars.NETLIFY_STAGE_SITE_ID || vars.NETLIFY_SITE_ID }}