Skip to content

try pypa/gh-action-pypi-publish@release/v1 #40

try pypa/gh-action-pypi-publish@release/v1

try pypa/gh-action-pypi-publish@release/v1 #40

Workflow file for this run

name: release
on:
push:
branches: [ main ]
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required to see tags and commits
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- uses: WIPACrepo/wipac-dev-next-version-action@v1.0
id: next-version
with:
force-patch-if-no-commit-token: true
ignore-paths: |
resources/foo/**
assets/**
- uses: WIPACrepo/wipac-dev-py-build-action@v1.0
if: steps.next-version.outputs.version != ''
with:
version: ${{ steps.next-version.outputs.version }}
- uses: softprops/action-gh-release@v2
if: steps.next-version.outputs.version != ''
with:
files: dist/*
tag_name: v${{ steps.next-version.outputs.version }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: pypa/gh-action-pypi-publish@release/v1
if: steps.next-version.outputs.version != ''
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}