From db0a37f78f35ee48f510bb6d10a7931e9502cb89 Mon Sep 17 00:00:00 2001 From: Sebastien Laclau Date: Thu, 19 Oct 2023 13:33:39 +0100 Subject: [PATCH] Add release.yaml Squashed commit of the following: commit 7e29a0e6c1ceebf8f10e133b348444f798ddbf33 Author: Sebastien Laclau Date: Thu Oct 19 13:29:41 2023 +0100 Install gettext not msgfmt in release.yaml commit 840fc448bbe45fcb574b41520b8763d8616625d9 Author: Sebastien Laclau Date: Thu Oct 19 13:28:42 2023 +0100 Install msgfmt in release.yaml commit a8b67cdbeafef07af8a7187ad9201e5d69cbdc5c Author: Sebastien Laclau Date: Thu Oct 19 13:27:32 2023 +0100 Fix make statement in release.yaml commit 8e05b622e40910b06d0f01315d808f29c6950fec Author: Sebastien Laclau Date: Thu Oct 19 13:26:09 2023 +0100 Fix make statement in release.yaml commit 4f666ca5a8240639e21b27fa329616420ca4ab43 Author: Sebastien Laclau Date: Thu Oct 19 13:25:24 2023 +0100 Fix apt install in release.yaml commit e37badab958dcd7fa6b7edb723d6b99dd4b57fa7 Author: Sebastien Laclau Date: Thu Oct 19 13:24:29 2023 +0100 Fix missing 'uses' in release.yaml commit a704d914f828671e8a507907aae6bf1dc75728cd Author: Sebastien Laclau Date: Thu Oct 19 13:23:29 2023 +0100 Fix if statement in release.yaml commit e302f124f008cba41095f479ee9d7b4731c6a8ca Author: Sebastien Laclau Date: Thu Oct 19 13:21:41 2023 +0100 Fix typo in release.yaml commit 9bfb8263e176ea9187e58d68761d9944be8dc93c Author: Sebastien Laclau Date: Thu Oct 19 13:21:15 2023 +0100 Fix typo in release.yaml commit 07289762a5e9f12445ade74b2c6d30ec6948c218 Author: Sebastien Laclau Date: Thu Oct 19 13:20:46 2023 +0100 Fix typo in release.yaml commit 885fdfa3923e275aba00796b3cb0c88bba8730dc Author: Sebastien Laclau Date: Thu Oct 19 13:18:14 2023 +0100 Add release.yaml --- .github/workflows/release.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..80138f9 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,32 @@ +name: "Prepare GitHub release" + +on: + push: + +jobs: + zip: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: zip + run: | + sudo apt-get install make gettext + make zip-file + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: zip + path: "*.zip" + - name: Release (pre) + uses: softprops/action-gh-release@v1 + with: + files: "*.zip" + prerelease: true + if: contains(github.ref_name,'rc') && github.ref_type == 'tag' + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: "*.zip" + if: "!contains(github.ref_name,'rc') && github.ref_type == 'tag'"