From 6991e05c68d3399190edf4ae1f344046882b47c1 Mon Sep 17 00:00:00 2001 From: nulano Date: Fri, 23 Oct 2020 16:20:37 +0100 Subject: [PATCH] create release --- .github/workflows/wheels.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index da95cb3b8..daedcbce1 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -61,7 +61,7 @@ jobs: echo "::endgroup::" echo "::group::Build wheel" - if [[ "${{ startsWith(github.ref, 'refs/tags') }}" == "false" ]]; then + if [[ "${{ startsWith(github.ref, 'refs/tags/') }}" == "false" ]]; then BUILD_COMMIT=master fi clean_code $REPO_DIR $BUILD_COMMIT @@ -75,3 +75,18 @@ jobs: with: name: wheels path: wheelhouse/*.whl + + release: + name: Create Release + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + needs: build + steps: + - uses: actions/download-artifact@v2 + with: + name: wheels + - name: Upload Release + uses: fnkr/github-action-ghr@v1.3 + env: + GHR_PATH: . + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}