more workflow shenanigans, trying something new

This commit is contained in:
semanticdata 2024-03-07 13:29:53 -06:00
parent 0a0cbcc023
commit abe2ca2862
3 changed files with 57 additions and 0 deletions

57
.github/workflows/deploy-test-only.yml vendored Normal file
View File

@ -0,0 +1,57 @@
name: Quartz - Deploy to GitHub Pages (test only)
on:
workflow_dispatch:
# push:
# branches:
# - main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git info
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install Dependencies
run: npm i
build:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Build Quartz Site
run: npx quartz build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
needs: [setup, build]
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
id: deployment