From 19249819c2eec48e2548fd10e19b5254348e7525 Mon Sep 17 00:00:00 2001 From: Tiernan8r Date: Wed, 2 Nov 2022 14:33:21 +0000 Subject: [PATCH 1/5] workflow on push of tags --- .github/workflows/release.yml | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b9ee8c6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,44 @@ +name: Release & Upload artifacts + +on: + push: + tags: + - "v*.*.*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Package Application (Linux) + uses: JackMcKew/pyinstaller-action-linux@main + with: + path: src + - name: Upload artifact (Linux) + uses: actions/upload-artifact@v2 + with: + name: GPX_elevation + path: src/dist/linux + - name: Package Application (Windows) + uses: JackMcKew/pyinstaller-action-windows@main + with: + path: src + - name: Upload artifact (Windows) + uses: actions/upload-artifact@v2 + with: + name: GPX_elevation + path: src/dist/windows + - name: Build + run: echo ${{ github.sha }} > Release.txt + - name: Test + run: cat Release.txt + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + Release.txt + LICENSE + src/dist/windows/GPX_elevation + src/dist/linux/GPX_elevation \ No newline at end of file From 1549b7170f531a98b04b64ff4e22bc255b0673c4 Mon Sep 17 00:00:00 2001 From: Tiernan8r Date: Wed, 2 Nov 2022 14:34:57 +0000 Subject: [PATCH 2/5] tmp change to test --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9ee8c6..35bd92b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,10 @@ name: Release & Upload artifacts -on: - push: - tags: - - "v*.*.*" +# on: +# push: +# tags: +# - "v*.*.*" +on: push jobs: build: From 796cc30f6343a4c8383571ca14095e25e2391a7c Mon Sep 17 00:00:00 2001 From: Tiernan8r Date: Wed, 2 Nov 2022 14:36:07 +0000 Subject: [PATCH 3/5] rm old workflows --- .github/workflows/pyinstaller_linux.yaml | 25 ---------------------- .github/workflows/pyinstaller_windows.yaml | 25 ---------------------- 2 files changed, 50 deletions(-) delete mode 100644 .github/workflows/pyinstaller_linux.yaml delete mode 100644 .github/workflows/pyinstaller_windows.yaml diff --git a/.github/workflows/pyinstaller_linux.yaml b/.github/workflows/pyinstaller_linux.yaml deleted file mode 100644 index e9a40c3..0000000 --- a/.github/workflows/pyinstaller_linux.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Package Application with Pyinstaller (Linux) - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Package Application - uses: JackMcKew/pyinstaller-action-linux@main - with: - path: src - - - uses: actions/upload-artifact@v2 - with: - name: GPX_elevation - path: src/dist/linux \ No newline at end of file diff --git a/.github/workflows/pyinstaller_windows.yaml b/.github/workflows/pyinstaller_windows.yaml deleted file mode 100644 index 27e569b..0000000 --- a/.github/workflows/pyinstaller_windows.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Package Application with Pyinstaller (Windows) - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Package Application - uses: JackMcKew/pyinstaller-action-windows@main - with: - path: src - - - uses: actions/upload-artifact@v2 - with: - name: GPX_elevation - path: src/dist/windows \ No newline at end of file From 4c9c89621c3dc7beb992f388cc0bb49b0daa4085 Mon Sep 17 00:00:00 2001 From: Tiernan8r Date: Wed, 2 Nov 2022 14:37:56 +0000 Subject: [PATCH 4/5] tweak to windows executable name --- .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 35bd92b..330af10 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Upload artifact (Windows) uses: actions/upload-artifact@v2 with: - name: GPX_elevation + name: GPX_elevation.exe path: src/dist/windows - name: Build run: echo ${{ github.sha }} > Release.txt @@ -41,5 +41,5 @@ jobs: files: | Release.txt LICENSE - src/dist/windows/GPX_elevation + src/dist/windows/GPX_elevation.exe src/dist/linux/GPX_elevation \ No newline at end of file From bc886a3cb1b7b89342a231e5fa8d8c09e17ff038 Mon Sep 17 00:00:00 2001 From: Tiernan8r Date: Wed, 2 Nov 2022 14:39:14 +0000 Subject: [PATCH 5/5] reinstate tags filter --- .github/workflows/release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 330af10..77fed29 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,9 @@ name: Release & Upload artifacts -# on: -# push: -# tags: -# - "v*.*.*" -on: push +on: + push: + tags: + - "v*.*.*" jobs: build: