Publish Stitch Website #843
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: 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 | |
- run: rustup default 1.78.0 # latest doesn't work! | |
- 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/[email protected] | |
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 | |