Skip to content

Commit 8a63175

Browse files
committed
[CI] Release Workflows
1 parent 955ffff commit 8a63175

File tree

5 files changed

+38
-112
lines changed

5 files changed

+38
-112
lines changed

.github/workflows/_announce-latest-nightly.yml renamed to .github/workflows/_announce-latest-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@ jobs:
4444
owner: compactmods
4545
repo: compactmachines
4646
group: dev.compactmods.compactmachines.compactmachines-neoforge
47-
filter: "^compactmachines-neoforge-(?:[\\d\\.]+)-nightly.jar$"
48-
outputFile: compactmachines-nightly.json
47+
filter: "^compactmachines-neoforge-(?:[\\d\\.]+).jar$"
48+
outputFile: compactmachines.json
4949

5050
- name: Debug output
5151
run: |
5252
echo "Version: ${{ steps.download-info.outputs.version }}"
53-
cat compactmachines-nightly.json
53+
cat compactmachines.json
5454
5555
- name: Read info into variable [latest]
5656
id: info
57-
run: echo "latestJson=$(cat compactmachines-nightly.json)" >> $GITHUB_OUTPUT
57+
run: echo "latestJson=$(cat compactmachines.json)" >> $GITHUB_OUTPUT
5858

5959
- name: Download JAR and prepare artifacts
6060
run: |
6161
mkdir release
6262
curl -L "${{ fromJson(steps.info.outputs.latestJson)[0].url }}" -o "release/${{ fromJson(steps.info.outputs.latestJson)[0].name }}"
63-
mv compactmachines-nightly.json release/compactmachines-nightly.json
63+
mv compactmachines.json release/compactmachines.json
6464
6565
- name: MC Version
6666
id: minecraft
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Release Latest to CurseForge as Beta
2-
3-
on:
4-
workflow_dispatch:
1+
name: Release Latest Build to CurseForge as Alpha
52

3+
on: [workflow_dispatch, workflow_call]
64
jobs:
75
get-package-info:
86
name: Get Latest Package Info
@@ -66,4 +64,4 @@ jobs:
6664
game_endpoint: minecraft
6765
file_path: ${{ fromJson(steps.info.outputs.latestJson)[0].name}}
6866
game_versions: java:Java 21,NeoForge
69-
release_type: beta
67+
release_type: alpha

.github/workflows/announce-latest-nightly.yml renamed to .github/workflows/announce-latest-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
owner: compactmods
2222
repo: compactmachines
2323
group: dev.compactmods.compactmachines.compactmachines-neoforge
24-
filter: "^compactmachines-neoforge-(?:[\\d\\.]+)-nightly.jar$"
25-
outputFile: compactmachines-nightly.json
24+
filter: "^compactmachines-neoforge-(?:[\\d\\.]+).jar$"
25+
outputFile: compactmachines.json
2626

2727
- name: Debug output
2828
run: |
2929
echo "Version: ${{ steps.download-info.outputs.version }}"
30-
cat compactmachines-nightly.json
30+
cat compactmachines.json
3131
3232
announce:
3333
name: Discord Announcement
34-
uses: ./.github/workflows/_announce-latest-nightly.yml
34+
uses: _announce-latest-build.yml
3535
secrets: inherit
Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish and Announce Nightly Build
1+
name: Continuous Integration + Announcement
22

33
env:
44
GH_PKG_URL: "https://maven.pkg.github.com/${{ github.repository }}"
@@ -38,7 +38,7 @@ jobs:
3838
uses: paulhatch/[email protected]
3939
with:
4040
change_path: "neoforge-main"
41-
version_format: "${major}.${minor}.${patch}.${increment}-nightly"
41+
version_format: "${major}.${minor}.${patch}"
4242
search_commit_body: true
4343
bump_each_commit: true
4444

@@ -49,41 +49,38 @@ jobs:
4949
with:
5050
version: ${{ needs.vars.outputs.version }}
5151

52-
tests:
53-
if: ${{ !inputs.skip_tests }}
54-
needs: [vars, datagen]
55-
uses: ./.github/workflows/_run-gametests.yml
56-
secrets: inherit
57-
with:
58-
version: ${{ needs.vars.outputs.version }}
52+
# tests:
53+
# if: ${{ !inputs.skip_tests }}
54+
# needs: [vars, datagen]
55+
# uses: ./.github/workflows/_run-gametests.yml
56+
# secrets: inherit
57+
# with:
58+
# version: ${{ needs.vars.outputs.version }}
5959

60-
publish-after-tests:
61-
needs: [vars, tests]
62-
if: ${{ !inputs.skip_tests && needs.tests.result == 'success' }}
63-
uses: ./.github/workflows/_publish.yml
64-
secrets: inherit
65-
with:
66-
version: ${{ needs.vars.outputs.version }}
60+
# publish-after-tests:
61+
# needs: [vars, tests]
62+
# if: ${{ !inputs.skip_tests && needs.tests.result == 'success' }}
63+
# uses: ./.github/workflows/_publish.yml
64+
# secrets: inherit
65+
# with:
66+
# version: ${{ needs.vars.outputs.version }}
6767

68-
publish-after-no-tests:
68+
publish:
6969
needs: [vars, datagen]
70-
if: ${{ inputs.skip_tests && needs.datagen.result == 'success' }}
70+
# if: ${{ inputs.skip_tests && needs.datagen.result == 'success' }}
7171
uses: ./.github/workflows/_publish.yml
7272
secrets: inherit
7373
with:
7474
version: ${{ needs.vars.outputs.version }}
7575

76-
after-publish:
77-
runs-on: ubuntu-latest
78-
needs: [publish-after-tests, publish-after-no-tests]
79-
if: ${{ always() }}
80-
steps:
81-
- name: no-op
82-
run: echo ""
83-
8476
announce:
8577
name: Discord Announcement
86-
needs: [ after-publish ]
87-
if: ${{ always() }}
88-
uses: ./.github/workflows/_announce-latest-nightly.yml
78+
needs: [ publish ]
79+
uses: ./.github/workflows/_announce-latest-build.yml
80+
secrets: inherit
81+
82+
release-cf:
83+
name: Release Alpha on CurseForge
84+
needs: [ publish ]
85+
uses: ./.github/workflows/_release-cf-alpha.yml
8986
secrets: inherit

.github/workflows/release-cf-alpha.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)