Designate 0.23.2rc1 release #128
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Wheels and Release | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- maintenance/** | |
permissions: | |
contents: read | |
jobs: | |
call-workflow-build-wheels: | |
uses: ./.github/workflows/wheels_recipe.yml | |
deploy: | |
name: Release | |
needs: call-workflow-build-wheels | |
if: github.repository_owner == 'scikit-image' && startsWith(github.ref, 'refs/tags/v') && always() | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
contents: write # for softprops/action-gh-release to create GitHub release | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: "3.12" | |
- name: Install Twine | |
run: | | |
pip install twine | |
- uses: actions/download-artifact@v3 | |
id: download | |
with: | |
name: wheels | |
path: ./dist | |
- name: Build the source distribution | |
run: | | |
SK_VERSION=$(git describe --tags) | |
source tools/github/before_install.sh | |
python -m build --no-isolation --skip-dependency-check --sdist . | |
ls -la ${{ github.workspace }}/dist | |
# We prefer to release wheels before source because otherwise there is a | |
# small window during which users who pip install scikit-image will require compilation. | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
- name: Github release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPOSITORY: ${{ github.repository }} |