-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.63 KB
/
Copy pathrelease.yml
File metadata and controls
64 lines (55 loc) · 1.63 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
61
62
63
64
name: Release
on:
pull_request:
types:
- closed
branches:
- main
permissions:
contents: write
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: github.repository_owner == 'NanoForge-dev' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/loader@')
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Prepare
uses: ./.github/actions/prepare
- name: Release packages
uses: ./node_modules/@nanoforge-dev/actions/actions/release-packages
with:
packages: "@nanoforge-dev/loader-client,@nanoforge-dev/loader-server,@nanoforge-dev/loader-website"
tag-format: "{version}"
latest: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-docs:
name: Publish docs
runs-on: ubuntu-latest
if: github.repository_owner == 'NanoForge-dev'
needs: [release]
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
- name: Checkout docs repository
uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true
path: docs-dist
repository: nanoforge-dev/docs
token: ${{ secrets.ACTIONS_KEY }}
- name: Prepare
uses: ./.github/actions/prepare
- name: Publish docs
uses: ./node_modules/@nanoforge-dev/actions/actions/synchronize-docs
with:
repository: loader
category: cli