Files
garden/.gitea/workflows/deploy.yaml
Lauren Kaviak fc9d07751f
Some checks failed
Deploy Quartz site to Pages / build (push) Failing after 37s
use the pat....
2026-04-11 02:19:47 -05:00

68 lines
2.1 KiB
YAML

name: Deploy Quartz site to Pages
env:
VERSION_FRAGMENT: minor
on: [push]
permissions:
contents: read
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: 24
- uses: actions/checkout@v6
id: clone quartz repo
with:
# Repository name with owner. For example, actions/checkout
# Default: ${{ github.repository }}
repository: 'jackyzha0/quartz.git'
github-server-url: 'https://github.com/'
fetch-depth: 1
persist-credentials: false
token: ${{secrets.GH_PAT}}
ref: main
- uses: actions/checkout@v6
id: get garden content
with:
fetch-depth: 0 # Fetch all history for git info
path: content
- name: get current version
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
working-directory: content
- name: Increment Semantic Version
uses: christian-draeger/increment-semantic-version@1.2.3
id: bump_version
with:
current-version: ${{ env.CURRENT_VERSION }}
version-fragment: ${{ env.VERSION_FRAGMENT }}
- run: echo "${{ steps.bump_version.outputs.next-version }}" > version.txt
working-directory: content
- name: Read Current Version
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
working-directory: content
- run: git add version.txt && git commit -m "${{ env.VERSION_FRAGMENT }} version increment [skip actions]" && git tag ${{ env.CURRENT_VERSION }}
working-directory: content
- name: Overlay quartz configs
run: cp -fR content/.quartz/** .
- name: Install Dependencies
run: npm ci
working-directory: quartz
- name: Build Quartz
run: npx quartz build
- uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
files: |-
public/**
token: ${{secrets.CI_ACCESS}}