From f59d6bc1a42ee0f816bfb3c1051f782a9f4d8dff Mon Sep 17 00:00:00 2001 From: Stefan Hattrell <29941279+digorgonzola@users.noreply.github.com> Date: Tue, 23 Aug 2022 14:55:54 +1000 Subject: [PATCH] remove build step and add release action --- .github/workflows/build.yml | 31 ------------------------------- .github/workflows/release.yml | 17 ++++++----------- 2 files changed, 6 insertions(+), 42 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index dfcb79d3..00000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Build - -on: [push] - -jobs: - build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-20.04] - - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v3 - - - name: Get tags - run: git fetch --prune --unshallow --tags --force - - - name: Install build tools - run: python -m pip install build --user - - - name: Build wheels - run: python -m build --outdir wheels - - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: wheels/*.whl diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 996a41ed..ff5fcb81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,9 @@ -name: Build +name: Release on: - push: - tags: - - "v*.*.*" + release: + types: + - created jobs: release: @@ -15,20 +15,15 @@ jobs: steps: - uses: actions/checkout@v3 - + with: + fetch-depth: 0 - uses: actions/setup-python@v3 - - - name: Fetch tags - run: git fetch --prune --unshallow --tags - - name: Install build tools run: python -m pip install build --user - - name: Build wheels run: python -m build --outdir wheels - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') with: files: wheels/*.whl