From 66c02edccc1e7d69df8630497532c61a85708b7c Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 7 Jun 2024 11:33:21 +0200 Subject: [PATCH] build: create release drafts and upload assets --- .github/workflows/release.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 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..dc692cf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,46 @@ +name: Create release and upload assets + +on: + push: + tags: + - 'v*' + +jobs: + linuxbuild: + runs-on: ubuntu-latest + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v4 + - name: Run tests + run: cargo test --verbose + - run: make linux-package + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: 'true' + make_latest: 'true' + generate_release_notes: 'true' + files: | + *linux.tar.gz + windowsbuild: + runs-on: windows-latest + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v4 + - name: Run tests + run: cargo test --verbose + - run: make win-package + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + draft: 'true' + make_latest: 'true' + generate_release_notes: 'true' + files: | + *win64.zip \ No newline at end of file