From 46e7a43c00ba7d9678fda2c1173627704b3e7a44 Mon Sep 17 00:00:00 2001 From: NSC IT Solutions <132921300+dev-nis@users.noreply.github.com> Date: Sat, 4 May 2024 22:23:24 +0200 Subject: [PATCH 1/4] Create GitHub releases with Action-Workflow hopefully this works --- .github/workflows/makefile.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 2d561a3..4fd3946 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -45,16 +45,14 @@ jobs: with: name: rpm-build-result path: RPMS - - - name: Create release - if: contains(github.ref, 'release') - run: | - set -x - assets=() - for asset in RPMS/*.rpm; do - assets+=("-a" "$asset") - done - tag_name="${GITHUB_REF##*/}" - hub release create "${assets[@]}" -m "$tag_name" "$tag_name" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout + uses: actions/checkout@v4 + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + RPMS/jolla-settings-screenmonitor-${{ github.ref_name }}-1.aarch64 + RPMS/jolla-settings-screenmonitor-${{ github.ref_name }}-1.armv7hl + RPMS/jolla-settings-screenmonitor-${{ github.ref_name }}-1.i486 + jolla-settings-screenmonitor.changes From 736649f9f14b1a46bf547afbfa7924db6dcaddf2 Mon Sep 17 00:00:00 2001 From: NSC IT Solutions <132921300+dev-nis@users.noreply.github.com> Date: Sat, 4 May 2024 22:37:40 +0200 Subject: [PATCH 2/4] Update makefile.yml --- .github/workflows/makefile.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 4fd3946..6754e9a 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -41,18 +41,18 @@ jobs: arch: aarch64 - name: Upload build result - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: rpm-build-result path: RPMS - name: Checkout uses: actions/checkout@v4 - name: Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@v4 if: startsWith(github.ref, 'refs/tags/') with: files: | - RPMS/jolla-settings-screenmonitor-${{ github.ref_name }}-1.aarch64 - RPMS/jolla-settings-screenmonitor-${{ github.ref_name }}-1.armv7hl - RPMS/jolla-settings-screenmonitor-${{ github.ref_name }}-1.i486 + rpm-build-result/jolla-settings-screenmonitor-${{ github.ref_name }}-1.aarch64 + rpm-build-result/jolla-settings-screenmonitor-${{ github.ref_name }}-1.armv7hl + rpm-build-result/jolla-settings-screenmonitor-${{ github.ref_name }}-1.i486 jolla-settings-screenmonitor.changes From 150debb9984d061294ccfc1bb929e665aa1e7591 Mon Sep 17 00:00:00 2001 From: NSC IT Solutions <132921300+dev-nis@users.noreply.github.com> Date: Sat, 4 May 2024 22:38:29 +0200 Subject: [PATCH 3/4] Update makefile.yml --- .github/workflows/makefile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 6754e9a..f459244 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -48,7 +48,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Release - uses: softprops/action-gh-release@v4 + uses: softprops/action-gh-release@v3 if: startsWith(github.ref, 'refs/tags/') with: files: | From 14b62629597030ffd698afcb33c4595ffc0ac097 Mon Sep 17 00:00:00 2001 From: NSC IT Solutions <132921300+dev-nis@users.noreply.github.com> Date: Sat, 4 May 2024 22:38:53 +0200 Subject: [PATCH 4/4] Update makefile.yml --- .github/workflows/makefile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index f459244..e0c6926 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -48,7 +48,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Release - uses: softprops/action-gh-release@v3 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: files: |