forked from homarr-labs/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.36 KB
/
release.yaml
File metadata and controls
44 lines (41 loc) · 1.36 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
name: Release
permissions: {}
on:
repository_dispatch:
types: [trigger-release]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24]
steps:
- name: Obtain token
id: obtainToken
uses: tibdex/github-app-token@v2
with:
private_key: ${{ secrets.HOMARR_DOCS_RELEASE_APP_PRIVATE_KEY }}
app_id: ${{ vars.HOMARR_DOCS_RELEASE_APP_ID }}
- name: Checkout code
uses: actions/checkout@v6
with:
token: ${{ steps.obtainToken.outputs.token }}
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- run: |
RAW_TAG="${{ github.event.client_payload.tag }}"
CLEAN_TAG="${RAW_TAG#v}"
pnpm run docusaurus docs:version $CLEAN_TAG
- uses: EndBug/add-and-commit@v9
with:
message: 'docs: add version ${{ github.event.client_payload.tag }}'
push: true
author_name: "Docs Releases Homarr"
author_email: "204403377+homarr-docs-releases[bot]@users.noreply.github.com"
committer_name: "Docs Releases Homarr"
committer_email: "204403377+homarr-docs-releases[bot]@users.noreply.github.com"