- workflows
This commit is contained in:
24
.github/workflows/publish.yml
vendored
24
.github/workflows/publish.yml
vendored
@@ -1,24 +0,0 @@
|
|||||||
name: Publish
|
|
||||||
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish_wheels:
|
|
||||||
uses: ./.github/workflows/wheels.yml
|
|
||||||
publish:
|
|
||||||
name: publish
|
|
||||||
needs: publish_wheels
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
environment:
|
|
||||||
name: pypi
|
|
||||||
url: https://pypi.org/p/tiffwrite
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
steps:
|
|
||||||
- name: Download all the dists
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: python-package-distributions
|
|
||||||
path: dist/
|
|
||||||
- name: Publish distribution 📦 to PyPI
|
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
|
||||||
28
.github/workflows/wheels.yml
vendored
28
.github/workflows/wheels.yml
vendored
@@ -100,7 +100,7 @@ jobs:
|
|||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
sdist:
|
sdist:
|
||||||
# needs: [ wheels_pytest ]
|
needs: [ wheels_pytest ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -115,17 +115,15 @@ jobs:
|
|||||||
name: wheels-sdist
|
name: wheels-sdist
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
# release:
|
release:
|
||||||
# name: Release
|
name: Release
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# if: "startsWith(github.ref, 'refs/tags/')"
|
if: "startsWith(github.ref, 'refs/tags/')"
|
||||||
# needs: [linux, windows, macos, sdist]
|
needs: [linux, windows, macos, sdist]
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
# - name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
# uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
# env:
|
with:
|
||||||
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
command: upload
|
||||||
# with:
|
args: --non-interactive --skip-existing wheels-*/*
|
||||||
# command: upload
|
|
||||||
# args: --non-interactive --skip-existing wheels-*/*
|
|
||||||
|
|||||||
Reference in New Issue
Block a user