Skip to content

Publish Stitch Website #744

Publish Stitch Website

Publish Stitch Website #744

name: Publish Stitch Website
on:
workflow_dispatch:
schedule:
# https://crontab.guru/#0_6_*_*_1-5
- cron: '0 6 * * 1-5'
permissions:
contents: read
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- uses: actions/setup-node@v3
with:
node-version: 18.18.0
- run: corepack enable
- run: npm run setup:pnpm
- name: Install Dependencies
run: pnpm install --filter=@bscotch/gamemaker-releases... --filter=@bscotch/stitch-site...
- name: Build Deps
run: pnpm turbo run build --filter=@bscotch/stitch-site^...
- name: Update Unified Feed
run: pnpm node scripts/update-unified-feed.mjs
working-directory: packages/site
- name: Build
run: pnpm build
working-directory: packages/site
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1.0.9
with:
path: packages/site/build/
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2