-
Notifications
You must be signed in to change notification settings - Fork 7
60 lines (51 loc) · 1.51 KB
/
release.yml
File metadata and controls
60 lines (51 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Tag v*: scripted build + GitHub Release + optional NuGet.org push.
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: ritsulib-release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
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:
needs: release
uses: ./.github/workflows/gh-pages.yml
permissions:
contents: read
pages: write
id-token: write