Skip to content

chore(release): merge dev into main for v0.2.25 #21

chore(release): merge dev into main for v0.2.25

chore(release): merge dev into main for v0.2.25 #21

Workflow file for this run

# Tag v*: scripted build + GitHub Release + optional NuGet.org push.
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
concurrency:
group: ritsulib-release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Checkout API signatures (shallow)
uses: actions/checkout@v6
with:
repository: BAKAOLC/STS2-API-Signatures
path: sts2-api-signatures
fetch-depth: 1
token: ${{ secrets.STS2_SIGNATURES_TOKEN || github.token }}
- uses: ./.github/actions/ritsulib-build
with:
signatures-root: ${{ github.workspace }}/sts2-api-signatures
- name: GitHub Release (scripted)
env:
GH_TOKEN: ${{ github.token }}
shell: bash
working-directory: ${{ github.workspace }}
run: uv run python scripts/ci/gh_publish.py --repo-root "${{ github.workspace }}" tag-release
- name: NuGet.org push (scripted)
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
shell: bash
working-directory: ${{ github.workspace }}
run: uv run python scripts/ci/gh_publish.py --repo-root "${{ github.workspace }}" nuget-push
docs:
runs-on: ubuntu-latest
needs: release
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
version: 10
- name: Use Node.js (LTS)
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: pnpm
cache-dependency-path: docs/pnpm-lock.yaml
- name: 📦 Install docs dependencies
working-directory: docs
run: pnpm install --frozen-lockfile
- name: 🌌 Build docs
working-directory: docs
run: pnpm build
- name: 🪤 Deploy docs to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist
cname: sts2-ritsulib.ritsukage.com
force_orphan: true