temporarily restore old workflows

This commit is contained in:
bfahrenfort 2024-08-31 19:02:04 +10:00
parent 8d805141bb
commit 436b112fd3
2 changed files with 47 additions and 2 deletions

View File

@ -11,7 +11,7 @@ on:
jobs:
build-and-test:
if: ${{ github.repository == 'bfahrenfort/quartz' }}
if: ${{ github.repository == 'jackyzha0/quartz' }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
@ -48,7 +48,7 @@ jobs:
run: npx quartz build --bundleInfo
publish-tag:
if: ${{ github.repository == 'bfahrenfort/quartz' && github.ref == 'refs/heads/v4' }}
if: ${{ github.repository == 'jackyzha0/quartz' && github.ref == 'refs/heads/v4' }}
runs-on: ubuntu-latest
permissions:
contents: write

45
.github/workflows/deploy.yaml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Deploy Quartz site to GitHub Pages
on:
push:
branches:
- v4
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: npm ci
- name: Build Quartz
run: npx quartz build
- name: Upload artifact
uses: actions/upload-pages-artifact@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@v2