Skip to content

Commit

Permalink
Merge branch 'update-build' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tayden committed Aug 3, 2023
2 parents ddbd141 + a1383f2 commit 3792c91
Showing 1 changed file with 11 additions and 34 deletions.
45 changes: 11 additions & 34 deletions .github/workflows/gui-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -101,45 +103,20 @@ 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/windows-latest-dist/*,artifacts/ubuntu-latest-dist/*"
artifactContentType: application/octet-stream
generateReleaseNotes: true

0 comments on commit 3792c91

Please sign in to comment.