Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
spirali committed Feb 8, 2024
1 parent 3810e83 commit b639574
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,6 @@ jobs:
name: wheels
path: dist

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *

test:
strategy:
matrix:
Expand Down Expand Up @@ -151,9 +134,6 @@ jobs:
name: pytest artifacts
path: ${{ matrix.os }}-tests.tar

- name: Build docs
run: |
mkdocs build

build-docs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -184,9 +164,27 @@ jobs:

deploy-docs:
runs-on: ubuntu-latest
needs: [build-docs, test]
needs: [build-docs]
# if: github.event_name != 'pull_request'
steps:
- uses: actions/download-artifact@v3
with:
name: docs

release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [test, sdist, deploy-docs]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *

0 comments on commit b639574

Please sign in to comment.