Skip to content

Commit

Permalink
Add version variable
Browse files Browse the repository at this point in the history
Fixes #123
  • Loading branch information
SkoggsTrollet committed Aug 5, 2021
1 parent 4cb9905 commit e5b08af
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
name: NeoMori-${{ github.sha }}-${{ matrix.platform }}
path: NeoMori

- name: Set version
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Update global/version in override.cfg
run: sed -i "s#global/version\s*=.*#global/version=\"${GITHUB_REF/refs\/tags\//}\"#g" NeoMori/override.cfg
run: sed -i "s#global/version\s*=.*#global/version=\"${{ env.VERSION }}\"#g" NeoMori/override.cfg

- name: Set filename
run: echo "FILENAME=NeoMori-${GITHUB_REF/refs\/tags\//}-${{ matrix.platform }}" >> $GITHUB_ENV
run: echo "FILENAME=NeoMori-${{ env.VERSION }}-${{ matrix.platform }}" >> $GITHUB_ENV

- name: Zip client
run: zip -q -r ${{ env.FILENAME }}.zip NeoMori
Expand All @@ -48,5 +51,4 @@ jobs:
ITCH_GAME: neomori
ITCH_USER: eficode
PACKAGE: ${{ env.FILENAME }}.zip
VERSION: ${GITHUB_REF/refs\/tags\//}

VERSION: ${{ env.VERSION }}

0 comments on commit e5b08af

Please sign in to comment.