Skip to content

Commit f1e2cf7

Browse files
committed
update build and publish gha
1 parent a988294 commit f1e2cf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build_and_publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
release-type:
1515
description: 'Release type'
1616
type: choice
17-
default: 'beta'
17+
default: 'release'
1818
options:
1919
- 'release'
2020
- 'beta'
@@ -56,7 +56,7 @@ jobs:
5656
- name: Read current mod version
5757
id: read_version
5858
run: |
59-
mod_version=$(grep "modVersion" gradle.properties | cut -d'=' -f2 | tr -d '[:space:]')
59+
mod_version=$(grep "modVersion" buildscript.properties | cut -d'=' -f2 | tr -d '[:space:]')
6060
echo "Current mod version: $mod_version"
6161
if [ "$mod_version" == "${{inputs.version}}" ]; then
6262
echo "UPDATED=true" >> $GITHUB_ENV
@@ -87,13 +87,13 @@ jobs:
8787
if: env.UPDATED == 'false' # only change new version if it's not already updated
8888
run: sed -i "s/modVersion.*=.*/modVersion = ${{ github.event.inputs.version }}/g" gradle.properties
8989

90-
- name: Commit and push gradle.properties
90+
- name: Commit and push buildscript.properties
9191
if: env.UPDATED == 'false' # only push new version if it's not already updated
9292
uses: stefanzweifel/[email protected]
9393
with:
9494
commit_message: "Bump version to ${{ github.event.inputs.version }}"
9595
commit_options: "--no-verify"
96-
file_pattern: gradle.properties
96+
file_pattern: buildscript.properties
9797
tagging_message: "v${{ github.event.inputs.version }}"
9898

9999
- name: Check for publishing

0 commit comments

Comments
 (0)