quartz/.github/workflows/deploy.yml
2024-02-07 10:29:50 -06:00

49 lines
1.0 KiB
YAML

name: Deploy to GitHub Pages
on:
workflow_dispatch:
# push:
# branches:
# - main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v3
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v3 # v3
with:
node-version: 20.11.0 # 18.14
- name: PNPM Install
uses: ./.github/actions/pnpm-install
- name: Install Dependencies
run: pnpm i # was npm i
- name: Build Quartz
run: npx quartz build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3 # v2
with:
path: public
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # v2