Files
garden/.gitea/workflows/deploy.yaml
2026-04-11 01:43:36 -05:00

49 lines
1.3 KiB
YAML

name: Deploy Quartz site to Pages
env:
VERSION_FRAGMENT: minor
on:
push:
branches:
- v4
permissions:
contents: read
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for git info
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Dependencies
run: npm ci
- name: Build Quartz
run: npx quartz build
- 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
- name: Read Current Version
run: echo "::set-env name=CURRENT_VERSION::$(cat version.txt)"
- run: git add version.txt && git commit -m "${{ env.VERSION_FRAGMENT }} version increment [skip actions]" && git tag ${{ env.CURRENT_VERSION }}
- uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
files: |-
public/**
token: ${{secrets.CI_ACCESS}}