Skip to content

Commit

Permalink
fix(actions): populate release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Sep 3, 2024
1 parent a507c4c commit caf2960
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ jobs:
run: ./installConcurrentUtil.sh
- name: "execute gradle build"
run: ./gradlew build
- name: Publish (Pre-)Release to Modrinth
- name: Determine Snapshot Status
run: |
if [ "$(./gradlew properties | awk '/^version:/ { print $2; }' | grep '\-SNAPSHOT')" ]; then
echo "STATUS=snapshot" >> $GITHUB_ENV
else
echo "STATUS=release" >> $GITHUB_ENV
fi
- name: Publish (Pre-)Release to Modrinth & CurseForge
if: "${{ env.STATUS == 'release' && github.event_name == 'release' }}"
run: ./gradlew :moonrise-fabric:publishMods :moonrise-neoforge:publishMods
env:
Expand Down

0 comments on commit caf2960

Please sign in to comment.