From 4446856267440260b41ee42a18297472d3974680 Mon Sep 17 00:00:00 2001 From: Craig Allsop <> Date: Thu, 6 Mar 2025 11:05:25 +1000 Subject: [PATCH 1/5] Update asset name --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c061148..3f6c2e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,5 +47,5 @@ jobs: with: upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps asset_path: ./bin.ntx64/jam.exe - asset_name: jam.exe (Windows x64) + asset_name: bin.ntx64/jam.exe asset_content_type: application/octet-stream \ No newline at end of file From b91c96c7f1129a85dc7591669476fd37a94bddc2 Mon Sep 17 00:00:00 2001 From: Craig Allsop <> Date: Thu, 6 Mar 2025 11:38:15 +1000 Subject: [PATCH 2/5] . --- .github/workflows/release.yml | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f6c2e3..6cc4daf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,24 +28,23 @@ jobs: working-directory: ${{env.GITHUB_WORKSPACE}} run: bin.ntx64\jam.exe -v - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - draft: false - prerelease: false - - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 + - name: Package + shell: bash + working-directory: ${{env.GITHUB_WORKSPACE}} + run: | + tag=${{ github.ref }} + release_name="jam-$tag-${{ matrix.target }}" + + # Pack files + if [ "${{ matrix.target }}" == "win-x64" ]; then + 7z a -tzip "${release_name}.zip" "./bin.ntx64/*" + else + tar czvf "${release_name}.tar.gz" "bin.ntx64/" + fi + + - name: Release + uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./bin.ntx64/jam.exe - asset_name: bin.ntx64/jam.exe - asset_content_type: application/octet-stream \ No newline at end of file + files: "jam-*" From c0d0ac966164ec681ad3e4ba371688a5d4c2bcfa Mon Sep 17 00:00:00 2001 From: Craig Allsop <> Date: Thu, 6 Mar 2025 11:44:10 +1000 Subject: [PATCH 3/5] . --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6cc4daf..6e52432 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,14 @@ on: jobs: build: name: Publish binaries - runs-on: windows-latest + strategy: + matrix: + kind: ['windows'] + include: + - kind: windows + os: windows-latest + target: win-x64 + runs-on: ${{ matrix.os }} steps: - name: Setup Developer Command Prompt From d5113e4c9a58af5a04fca6c2b03e826a14c13e55 Mon Sep 17 00:00:00 2001 From: Craig Allsop <> Date: Thu, 6 Mar 2025 11:47:53 +1000 Subject: [PATCH 4/5] . --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e52432..054f8f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: shell: bash working-directory: ${{env.GITHUB_WORKSPACE}} run: | - tag=${{ github.ref }} + tag=$(git describe --tags --abbrev=0) release_name="jam-$tag-${{ matrix.target }}" # Pack files From dba6e3cfa125d0bf1daf6efdb7a8f4de8ec7c126 Mon Sep 17 00:00:00 2001 From: Craig Allsop <> Date: Thu, 6 Mar 2025 12:00:10 +1000 Subject: [PATCH 5/5] . --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 054f8f3..e7b5dae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,9 +44,9 @@ jobs: # Pack files if [ "${{ matrix.target }}" == "win-x64" ]; then - 7z a -tzip "${release_name}.zip" "./bin.ntx64/*" + 7z a -tzip "${release_name}.zip" "./bin.ntx64/jam.exe" else - tar czvf "${release_name}.tar.gz" "bin.ntx64/" + tar czvf "${release_name}.tar.gz" "bin.ntx64/jam" fi - name: Release