From 607ec45b72ff9fb7078d9ecef697aa84653aa4b3 Mon Sep 17 00:00:00 2001 From: Duc Le Date: Thu, 30 May 2024 03:38:42 +0100 Subject: [PATCH] Fix release CI --- .github/workflows/main.yml | 2 +- .github/workflows/release.yml | 3 ++- .github/workflows/upload_pypi.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 38bf76e..044dd94 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -183,7 +183,7 @@ jobs: - name: Upload release wheels if: ${{ github.event_name == 'release' }} run: | - pip3 install requests + pip3 install requests numpy python3 release.py --notest --github --token=${{ secrets.GH_GIST_TOKEN }} #- name: Setup tmate # if: ${{ failure() }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c389a0..5421dfd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,7 @@ on: pull_request: branches: [main] types: [closed] + workflow_dispatch: jobs: create_release: @@ -18,5 +19,5 @@ jobs: github.event.pull_request.merged shell: bash -l {0} run: | - pip3 install requests + pip3 install requests numpy python3 release.py --notest --github --create_tag --token=${{ secrets.GH_GIST_TOKEN }} diff --git a/.github/workflows/upload_pypi.yml b/.github/workflows/upload_pypi.yml index 11de24c..fc2e7de 100644 --- a/.github/workflows/upload_pypi.yml +++ b/.github/workflows/upload_pypi.yml @@ -13,7 +13,7 @@ jobs: fetch-depth: 0 - name: Download wheels run: | - python3 -m pip install twine requests + python3 -m pip install twine requests numpy python3 release.py --pypi --token=${{ secrets.GH_GIST_TOKEN }} - name: Publish wheels to PyPI env: