From 45b050f96e361e779b5314b2cdcd66a7ed14e96e Mon Sep 17 00:00:00 2001 From: james58899 Date: Fri, 8 Mar 2024 06:49:39 +0000 Subject: [PATCH] Test release --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..86a5a7e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Release + +on: + push: + branches: [ "dev" ] # test + # branches: [ "main" ] + # tags: [ "**" ] + +jobs: + build: + uses: ./.github/workflows/build.yml + release: + needs: build + permissions: + # write permission is required to create a github release + contents: write + runs-on: ubuntu-latest + steps: + - name: Download artifact + uses: actions/download-artifact@v4 + - name: Unpack artifact + run: | + unzip -qp hath-rust-x86_64-unknown-linux-gnu.zip > hath-rust-x86_64-unknown-linux-gnu + unzip -qp hath-rust-aarch64-unknown-linux-gnu.zip > hath-rust-aarch64-unknown-linux-gnu + unzip -qp hath-rust-armv7-unknown-linux-gnueabihf.zip > hath-rust-armv7-unknown-linux-gnueabihf + unzip -qp hath-rust-x86_64-pc-windows-msvc.zip > hath-rust-x86_64-pc-windows-msvc.exe + unzip -qp hath-rust-i686-pc-windows-msvc.zip > hath-rust-i686-pc-windows-msvc.exe + unzip -qp hath-rust-universal-apple-darwin.zip > hath-rust-universal-apple-darwin + - name: Create release + uses: softprops/action-gh-release@v1 + with: + draft: true + generate_release_notes: true + files: | + hath-rust-x86_64-unknown-linux-gnu + hath-rust-aarch64-unknown-linux-gnu + hath-rust-armv7-unknown-linux-gnueabihf + hath-rust-x86_64-pc-windows-msvc.exe + hath-rust-i686-pc-windows-msvc.exe + hath-rust-universal-apple-darwin