update pack version from git tag
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user