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.
This commit is contained in:
youben11
2021-12-08 11:09:35 +01:00
committed by Quentin Bourgerie
parent 0a7ac76b10
commit 5773310215

View File

@@ -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