From 3342b6a686b3618b0bc4dfcbdcfa77c58bc0f23b Mon Sep 17 00:00:00 2001 From: Taylor Denouden Date: Thu, 3 Aug 2023 10:35:49 -0700 Subject: [PATCH 1/4] Update build action --- .github/workflows/gui-release.yml | 42 +++++++------------------------ 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/.github/workflows/gui-release.yml b/.github/workflows/gui-release.yml index a6015c2..7e39563 100644 --- a/.github/workflows/gui-release.yml +++ b/.github/workflows/gui-release.yml @@ -62,6 +62,7 @@ jobs: --icon="las_trx/resources/las-trx.ico" --add-data="las_trx/resources/las-trx.ico:resources" --add-data="las_trx/resources/*.ui:resources" + --name LAS-TRX-v${{ env.tag }}-linux las_trx/__main__.py - name: Build Windows GUI Executable @@ -73,6 +74,7 @@ jobs: --icon="las_trx\resources\las-trx.ico" --add-data="las_trx\resources\las-trx.ico;resources" --add-data="las_trx\resources\*.ui;resources" + --name LAS-TRX-v${{ env.tag }}-win64.exe las_trx/__main__.py - name: Archive release artifacts @@ -101,45 +103,19 @@ jobs: echo "prerelease=false" >> $GITHUB_ENV fi - - name: Download Windows artifacts - uses: actions/download-artifact@v2 + - name: Download artifacts + uses: actions/download-artifact@v3 with: - name: windows-latest-dist - path: win64-dist - - - name: Download Ubuntu artifacts - uses: actions/download-artifact@v2 - with: - name: ubuntu-latest-dist - path: linux-dist + path: artifacts - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ env.tag }} - release_name: v${{ env.tag }} + tag: ${{ env.tag }} draft: true prerelease: ${{ env.prerelease }} - - - name: Upload Windows GUI assets - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: win64-dist/__main__.exe - asset_name: LAS-TRX-v${{ env.tag }}-win64.exe - asset_content_type: application/octet-stream - - - name: Upload Ubuntu GUI assets - uses: actions/upload-release-asset@v1.0.2 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: linux-dist/__main__ - asset_name: LAS-TRX-v${{ env.tag }}-linux - asset_content_type: application/octet-stream + artifacts: "artifacts/*" + artifactContentType: application/octet-stream From 3a3a147c3d8d174bbefff1abc19047489734e454 Mon Sep 17 00:00:00 2001 From: Taylor Denouden Date: Thu, 3 Aug 2023 10:42:54 -0700 Subject: [PATCH 2/4] Fix artifact upload --- .github/workflows/gui-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gui-release.yml b/.github/workflows/gui-release.yml index 7e39563..85017e1 100644 --- a/.github/workflows/gui-release.yml +++ b/.github/workflows/gui-release.yml @@ -117,5 +117,5 @@ jobs: tag: ${{ env.tag }} draft: true prerelease: ${{ env.prerelease }} - artifacts: "artifacts/*" + artifacts: "artifacts/**/*" artifactContentType: application/octet-stream From 10e9fed4205db9befd2da0c09fa2f57197789b18 Mon Sep 17 00:00:00 2001 From: Taylor Denouden Date: Thu, 3 Aug 2023 10:49:26 -0700 Subject: [PATCH 3/4] Update poetry version in release --- .github/workflows/gui-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gui-release.yml b/.github/workflows/gui-release.yml index 85017e1..7053b5a 100644 --- a/.github/workflows/gui-release.yml +++ b/.github/workflows/gui-release.yml @@ -30,7 +30,7 @@ jobs: - name: Setup Poetry uses: abatilo/actions-poetry@v2.3.0 with: - poetry-version: 1.2.2 + poetry-version: 1.3.2 - name: Get version tag run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV From a1383f28d0a60efcb27646fd43e20b5fc714c2f3 Mon Sep 17 00:00:00 2001 From: Taylor Denouden Date: Thu, 3 Aug 2023 10:53:20 -0700 Subject: [PATCH 4/4] Fix artifacts? --- .github/workflows/gui-release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gui-release.yml b/.github/workflows/gui-release.yml index 7053b5a..8d6aa44 100644 --- a/.github/workflows/gui-release.yml +++ b/.github/workflows/gui-release.yml @@ -117,5 +117,6 @@ jobs: tag: ${{ env.tag }} draft: true prerelease: ${{ env.prerelease }} - artifacts: "artifacts/**/*" + artifacts: "artifacts/windows-latest-dist/*,artifacts/ubuntu-latest-dist/*" artifactContentType: application/octet-stream + generateReleaseNotes: true