Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
Signed-off-by: Achille Roussel <[email protected]>
  • Loading branch information
achille-roussel committed Feb 13, 2024
1 parent b5b909b commit 9bbba79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: PyPI

on:
- push
- push:
tags:
- 'v*'

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

jobs:
archive:
Expand Down Expand Up @@ -46,8 +52,7 @@ jobs:
name: cibw-wheels-${{ matrix.os }}
path: wheelhouse/*.whl

test:
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
release:
needs:
- archive
- build
Expand All @@ -64,23 +69,3 @@ jobs:
pattern: '*'
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

release:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs:
- archive
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://pypi.org/p/dispatch-functions
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: cibw-wheels-*
- uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Test
on:
- push

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand Down

0 comments on commit 9bbba79

Please sign in to comment.