-
Notifications
You must be signed in to change notification settings - Fork 24
46 lines (38 loc) · 1.18 KB
/
publish.yml
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
name: Publish
on:
release:
types: [prereleased, released]
jobs:
build:
uses: ./.github/workflows/build.yml
with:
ref: ${{ github.event.release.tag_name }}
upload-release-artifacts:
name: Add artifacts to Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Fetch Sources
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
- name: Upload artifacts to Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB }}
run: gh release upload ${{ github.event.release.tag_name }} thunderstore-build/*/dist/*.zip nupkg-build/*/bin/Release/*.nupkg
release-curseforge:
needs: build
uses: ./.github/workflows/release-curseforge.yml
secrets:
curseforge-token: ${{ secrets.CURSEFORGE_API_KEY }}
project-id: ${{ secrets.CURSEFORGE_PROJECTID }}
release-thunderstore:
needs: build
uses: ./.github/workflows/release-thunderstore.yml
secrets:
thunderstore-token: ${{ secrets.THUNDERSTORE_API_KEY }}
release-nuget:
needs: build
uses: ./.github/workflows/release-nuget.yml
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}