update pack version from git tag

This commit is contained in:
2025-12-20 08:47:31 -08:00
parent ac21aeb62e
commit 676369f37f
2 changed files with 10 additions and 4 deletions
+9 -3
View File
@@ -11,12 +11,18 @@ jobs:
with:
fetch-depth: 0
- run: for var in $(grep = pack.toml | tr -d ' "'); do echo $var; done >> $GITHUB_ENV
working-directory: assets
- run: |
curl -L https://github.com/sugoidogo/packwiz/releases/latest/download/packwiz_linux_amd64.tar.gz | tar -xzvf - packwiz
export PATH=$PATH:$PWD
- working-directory: ./assets
run: packwiz refresh
- working-directory: ./assets
run: sed -i s/version = "0.0.0"/version = "$(git describe --tags --abbrev=0 HEAD)"/g pack.toml
- run: for var in $(grep = pack.toml | tr -d ' "'); do echo $var; done >> $GITHUB_ENV
working-directory: ./assets
- working-directory: ./assets
run: |
+1 -1
View File
@@ -13,6 +13,6 @@ It can also publish updates to Curseforge and/or Modrinth, provided a token and
8. Commit and push to Gitea.
9. (optional) In your repo settings on Gitea, add the `MODRINTH_TOKEN` and `MODRINTH_ID` and/or `CURSEFORGE_TOKEN` and `CURSEFORGE_ID` action runner secrets to enable automated releases on the respective site.
Release notes are automatically generated from your commit messages. To kick off a new release, push a new git tag.
Release notes are automatically generated from your commit messages. To kick off a new release, push a new git tag. Leave the pack version at "0.0.0" to have it auto-updated from the git tag.
Note that the prism pack requires a system installation of java version 21 or higher for the packwiz updater.