diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 261221e..4afe01d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,11 @@ jobs: - name: Install jq run: sudo apt-get update && sudo apt-get install -y jq + - name: Update config.json version to ${{ github.event.release.tag_name }} + run: | + jq --arg v "${{ github.event.release.tag_name }}" '.version = $v' ./config.json > ./config.tmp.json + mv ./config.tmp.json ./config.json + - name: Commit manifest update run: | git config user.name github-actions @@ -39,13 +44,8 @@ jobs: run: | sha256sum AutoExitNode.exe > AutoExitNode.exe.sha256 - - name: Update config.json version to ${{ github.event.release.tag_name }} - run: | - jq --arg v "${{ github.event.release.tag_name }}" '.version = $v' ./config.json > ./config.tmp.json - mv ./config.tmp.json ./config.json - - name: Upload AutoExitNode.exe to release - uses: svenstaro/upload-release-action@2.11.2 + uses: svenstaro/upload-release-action@2.11.1 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ./AutoExitNode.exe @@ -54,7 +54,7 @@ jobs: overwrite: true - name: Upload SHA256 file to release - uses: svenstaro/upload-release-action@2.11.2 + uses: svenstaro/upload-release-action@2.11.1 with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ./AutoExitNode.exe.sha256