-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'update-build' into main
- Loading branch information
Showing
1 changed file
with
11 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Setup Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.2.2 | ||
poetry-version: 1.3.2 | ||
|
||
- name: Get version tag | ||
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
|
@@ -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,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/[email protected] | ||
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/[email protected] | ||
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 |