From 5f84424634a6b10e0a3d0d9c7c31d5d1c6d39937 Mon Sep 17 00:00:00 2001 From: flaport Date: Sun, 9 Jul 2023 13:14:29 -0700 Subject: [PATCH] consolidate in one github workflows file --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++-- .github/workflows/publish.yml | 37 ----------------------------------- 2 files changed, 28 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c56c1d9..215a2f4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,5 @@ name: main on: - workflow_dispatch: - pull_request: push: tags: - '[0-9].[0-9].[0-9]' @@ -34,3 +32,31 @@ jobs: with: path: ./wheelhouse/*.whl + release: + name: Create Release + needs: [build_wheels] + runs-on: ubuntu-latest + + steps: + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - uses: actions/download-artifact@v3 + with: + name: artifact + path: dist + + - name: Show dist contents + run: ls dist + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: dist/* + + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} + diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 072c9fd..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Create Release - -on: - push: - tags: - - '[0-9].[0-9].[0-9]' - -jobs: - release: - name: Create Release - needs: [build_wheels] - runs-on: ubuntu-latest - - steps: - - uses: actions/setup-python@v4 - with: - python-version: "3.x" - - - uses: actions/download-artifact@v3 - with: - name: artifact - path: dist - - - name: Show dist contents - run: ls dist - - - name: Release - uses: softprops/action-gh-release@v1 - with: - files: | - dist/* - - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} -