-
Notifications
You must be signed in to change notification settings - Fork 72
70 lines (60 loc) · 1.55 KB
/
ci-builds.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Continuous Integration + Announcement
env:
GH_PKG_URL: "https://maven.pkg.github.com/${{ github.repository }}"
on:
workflow_dispatch:
push:
paths-ignore:
- "README.md"
- "LICENSE"
- ".github/**/*"
- "**/*.gradle.kts"
- "**/gradle.properties"
jobs:
vars:
name: Get Variables
runs-on: ubuntu-22.04
outputs:
version: ${{steps.version.outputs.version}}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 150
fetch-tags: true
- name: Version
id: version
uses: paulhatch/[email protected]
with:
change_path: "src"
version_format: "${major}.${minor}.${patch}"
search_commit_body: true
bump_each_commit: true
datagen:
needs: [vars]
uses: ./.github/workflows/_datagen.yml
secrets: inherit
with:
version: ${{ needs.vars.outputs.version }}
tests:
needs: [vars, datagen]
uses: ./.github/workflows/_run-gametests.yml
secrets: inherit
with:
version: ${{ needs.vars.outputs.version }}
publish:
needs: [vars, tests]
uses: ./.github/workflows/_publish.yml
secrets: inherit
with:
version: ${{ needs.vars.outputs.version }}
announce:
name: Discord Announcement
needs: [ publish ]
uses: ./.github/workflows/_announce-latest-build.yml
secrets: inherit
release-cf:
name: Release Alpha on CurseForge
needs: [ publish ]
uses: ./.github/workflows/_release-cf-alpha.yml
secrets: inherit