-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.03 KB
/
release.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build and release
on:
push:
branches:
- release
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: ${{ steps.get-release-version.outputs.version }}
version-name: ${{ steps.get-release-version.outputs.version-name }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get release version
id: get-release-version
uses: wemogy/get-release-version-action@v4.3.2
with:
prefix: v
create-tag: "true"
git-username: bennetrr
git-email: 76742318+bennetrr@users.noreply.github.com
mode: semantic
build-standard:
name: Build standard edition
needs: [setup]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Build modpack
uses: ./.github/actions/build-modpack
with:
edition: standard
version: ${{ needs.setup.outputs.version }}
build-plus:
name: Build plus edition
needs: [setup]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Build modpack
uses: ./.github/actions/build-modpack
with:
edition: plus
version: ${{ needs.setup.outputs.version }}
github-release:
name: Create GitHub release
needs:
- setup
- build-standard
- build-plus
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Create GitHub release
uses: ncipollo/release-action@v1
with:
name: Version ${{ needs.setup.outputs.version }}
tag: ${{ needs.setup.outputs.version-name }}
generateReleaseNotes: true
commit: ${{ github.head_ref || github.ref_name }}
artifacts: artifacts/*