You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/Release.yml
+33-24Lines changed: 33 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,23 @@ on:
10
10
projectsuffix:
11
11
required: true
12
12
type: string
13
-
mcversion:
13
+
tag:
14
14
required: true
15
15
type: string
16
-
tag:
16
+
rel_type:
17
+
required: true
18
+
type: string
19
+
mcversion:
17
20
required: true
18
21
type: string
19
22
news:
20
23
required: true
21
24
type: string
22
25
26
+
# Project IDs of the modpack.
23
27
env:
24
-
PROJECT_ID: "399664"
28
+
CF_PROJECT_ID: "399664"
29
+
MR_PROJECT_ID: "ZmoIrOsS"
25
30
26
31
jobs:
27
32
release-github:
@@ -32,14 +37,17 @@ jobs:
32
37
uses: actions/download-artifact@v4
33
38
with:
34
39
name: modpack
40
+
35
41
- name: Download serverpack
36
42
uses: actions/download-artifact@v4
37
43
with:
38
44
name: serverpack
45
+
39
46
- name: Download changelog
40
47
uses: actions/download-artifact@v4
41
48
with:
42
49
name: changelog
50
+
43
51
- name: Create release
44
52
uses: softprops/action-gh-release@v2
45
53
with:
@@ -55,55 +63,50 @@ jobs:
55
63
name: Deploy to CurseForge
56
64
runs-on: ubuntu-latest
57
65
steps:
58
-
- name: Check if CF_API_TOKEN exist
66
+
- name: Check if CF_TOKEN exist
59
67
shell: bash
60
68
run: |
61
-
if [ "${{ secrets.CF_API_TOKEN }}" == '' ]; then
62
-
echo '::error::No value found for secret key `CF_API_TOKEN`. See https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository' && exit 1
69
+
if [ "${{ secrets.CF_TOKEN }}" == '' ]; then
70
+
echo '::error::No value found for secret key `CF_TOKEN`. See https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository' && exit 1
0 commit comments