Skip to content

Commit

Permalink
build: shorter version number
Browse files Browse the repository at this point in the history
[publish beta]

Signed-off-by: Liyan Zhao <[email protected]>
  • Loading branch information
zly2006 committed Apr 1, 2024
1 parent 2753bb9 commit fcd493c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
properties: 'mod_name'
- name: Get Mod Version
id: get_mod_version
run: |
echo "mod_version=$(cat build/.reden-version)" >> $GITHUB_OUTPUT
- name: Get Short Mod Version
id: get_short_mod_version
run: |
echo "mod_version=$(cat build/.reden-short-version)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -78,7 +82,7 @@ jobs:
files: build/libs/*-@(stable).jar

name: "${{ steps.get_mod_name.outputs.mod_name }} ${{ steps.get_mod_version.outputs.mod_version }}"
version: "${{ steps.get_mod_version.outputs.mod_version }}"
version: "${{ steps.get_short_mod_version.outputs.mod_version }}"
version-type: release

loaders: fabric
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-and-publish-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
properties: 'mod_name'
- name: Get Mod Version
id: get_mod_version
run: |
echo "mod_version=$(cat build/.reden-version)" >> $GITHUB_OUTPUT
- name: Get Short Mod Version
id: get_short_mod_version
run: |
echo "mod_version=$(cat build/.reden-short-version)" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -103,7 +107,7 @@ jobs:
build/libs/*-@(beta)*@(ci)*[0123456789].jar
name: "${{ steps.get_mod_name.outputs.mod_name }} Pre-Release ${{ steps.get_mod_version.outputs.mod_version }}"
version: "${{ steps.get_mod_version.outputs.mod_version }}"
version: "${{ steps.get_short_mod_version.outputs.mod_version }}"
version-type: beta

loaders: |
Expand Down

0 comments on commit fcd493c

Please sign in to comment.