From 5773310215db7629e5211ec9ab26ffe69b01c2de Mon Sep 17 00:00:00 2001 From: youben11 Date: Wed, 8 Dec 2021 11:09:35 +0100 Subject: [PATCH] feat(ci): release on tag pushed (linux only) The release workflow should, whenever a tag is pushed, create a draft release on github (that should be manually checked by one of us to make the actual release). The release should contain wheels for python 3.8, 3.9, and 3.10, as well as a tarball containing the zamacompiler and required libraries (and installation guide is provided). The draft release will also have an auto generated release note that can be modified later. --- .github/workflows/release.yml | 51 ++++++++++------------------------- 1 file changed, 14 insertions(+), 37 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5fb84c913..9cc8192c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,11 +4,11 @@ on: push: branches: - master - - workflow_dispatch: + tags: + - "v*" jobs: - BuildAndPushArtifactsLinux: + BuildAndReleaseWithArtifactsLinux: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -26,41 +26,18 @@ jobs: make package_py310 make release_tarballs - - name: Upload Python3.8 Package - uses: svenstaro/upload-release-action@v2 + - name: Release + uses: softprops/action-gh-release@v1 with: - repo_token: ${{ secrets.GH_TOKEN_RELEASE }} - tag: v0.1.0-alpha - file: wheels/concretefhe_compiler-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl - asset_name: concretefhe_compiler-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl - overwrite: true - - - name: Upload Python3.9 Package - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GH_TOKEN_RELEASE }} - tag: v0.1.0-alpha - file: wheels/concretefhe_compiler-0.1.0-cp39-cp39-manylinux_2_24_x86_64.whl - asset_name: concretefhe_compiler-0.1.0-cp39-cp39-manylinux_2_24_x86_64.whl - overwrite: true - - - name: Upload Python3.10 Package - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GH_TOKEN_RELEASE }} - tag: v0.1.0-alpha - file: wheels/concretefhe_compiler-0.1.0-cp310-cp310-manylinux_2_24_x86_64.whl - asset_name: concretefhe_compiler-0.1.0-cp310-cp310-manylinux_2_24_x86_64.whl - overwrite: true - - - name: Upload Zamacompiler Tarball - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GH_TOKEN_RELEASE }} - tag: v0.1.0-alpha - file: tarballs/zamacompiler.tar.gz - asset_name: zamacompiler.tar.gz - overwrite: true + token: ${{ secrets.GH_TOKEN_RELEASE }} + draft: true + prerelease: true + generate_release_notes: true + files: | + wheels/concretefhe_compiler-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl + wheels/concretefhe_compiler-0.1.0-cp39-cp39-manylinux_2_24_x86_64.whl + wheels/concretefhe_compiler-0.1.0-cp310-cp310-manylinux_2_24_x86_64.whl + tarballs/zamacompiler.tar.gz # TODO(MacOS) # - clone concrete and build concrete-ffi