Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpw1991 authored Nov 17, 2023
1 parent 3a73b17 commit 8b5df18
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get clean version
run: echo "cleanVersion=$(echo ${{github.ref_name}} | sed s/v//g)" >> $GITHUB_ENV
- name: Check that version matches
run: |
if [[ "$(jq -r '.version_number' $(find ./${{env.name}}/Package -name ${{env.jsonf}}))" != "${{ env.cleanVersion }}" ]]; then
echo "::debug::${{env.cleanVersion}}"
if [[ "$(jq -r '.version_number' $(find ./${{env.name}}/Package -name ${{env.jsonf}}))" != "${{github.event.release.tag_name}}" ]]; then
echo "::debug::${{github.event.release.tag_name}}"
echo "::debug::$(cat $(find ./ -name ${{env.jsonf}}))"
echo "::error::Version in ${{env.jsonf}} does not match tag version"
exit 1
Expand All @@ -37,16 +35,16 @@ jobs:
needs: verify
steps:
- uses: actions/checkout@v3
- run: wget ${{ env.dlpath }}/${{ github.ref_name }}/${{ env.name }}.${{ github.ref_name }}.zip
- run: wget ${{env.dlpath}}/${{github.ref_name}}/${{env.name}}.${{github.ref_name}}.zip
- name: Upload Thunderstore Package
uses: GreenTF/upload-thunderstore-package@v4
with:
community: valheim
namespace: ${{ env.namespace }}
name: ${{ env.name }}
version: ${{ github.ref_name }} # This is the tag that was created in the release
description: ${{ env.DESCRIPTION }}
token: ${{ secrets.TS_KEY }}
deps: ${{ env.dependencies }}
categories: ${{ env.categories }}
file: ${{ env.name }}.${{ github.ref_name }}.zip
namespace: ${{env.namespace}}
name: ${{env.name}}
version: ${{github.event.release.tag_name}}
description: ${{env.DESCRIPTION}}
token: ${{secrets.TS_KEY}}
deps: ${{env.dependencies}}
categories: ${{env.categories}}
file: ${{env.name}}.${{github.event.release.tag_name}}.zip

0 comments on commit 8b5df18

Please sign in to comment.