Skip to content

Commit

Permalink
improve the publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyDynamic committed Oct 13, 2024
1 parent bc16006 commit 7bd47af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ jobs:
uses: christian-draeger/read-properties@1.1.1
with:
path: ${{ format('versions/{0}/gradle.properties', matrix.subproject) }}
properties: 'minecraft_version game_versions'
properties: 'minecraft_version minecraft_support_version'

- name: Fix game version
id: game_versions
run: |
# Fixed \n in game_versions isn't parsed by christian-draeger/read-properties as a line separator
echo 'value<<EOF' >> $GITHUB_OUTPUT
echo -e "${{ steps.properties_v.outputs.game_versions }}" >> $GITHUB_OUTPUT
echo -e "${{ steps.properties_v.outputs.minecraft_support_version }}" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Prepare file information
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ jobs:
uses: christian-draeger/read-properties@1.1.1
with:
path: ${{ format('versions/{0}/gradle.properties', matrix.subproject) }}
properties: 'minecraft_version game_versions'
properties: 'minecraft_version minecraft_support_version'

- name: Fix game version
id: game_versions
run: |
# Fixed \n in game_versions isn't parsed by christian-draeger/read-properties as a line separator
echo 'value<<EOF' >> $GITHUB_OUTPUT
echo -e "${{ steps.properties_v.outputs.game_versions }}" >> $GITHUB_OUTPUT
echo -e "${{ steps.properties_v.outputs.minecraft_support_version }}" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Prepare file information
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
minecraft_version=1.20
minecraft_support_version=>=1.20 <=1.20.4
minecraft_support_version=>=1.20 <=1.20.2
yarn_mappings=1.20+build.1
loader_version=0.14.24
fabric_version=0.83.0+1.20
Expand Down

0 comments on commit 7bd47af

Please sign in to comment.