Skip to content

Add bump to release

Add bump to release #6

Workflow file for this run

name: Release on PyPI
on:
release:
types:
- published
jobs:
build:
name: Build package using Poetry
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Set up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7.1"
- name: Build package
run: poetry build
- name: Store distribution files
uses: actions/upload-artifact@v3
with:
name: distribution
path: dist/
- name: Upload release attachment

Check failure on line 34 in .github/workflows/publish_pypi.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_pypi.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/*
publish:
name: Publish package to PyPI
runs-on: ubuntu-latest
needs: build
if: needs.build.result == "success"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Set up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.7.1"
- name: Retrieve distribution files
uses: actions/download-artifact@v3
with:
name: distribution
path: dist/
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish
bump:
name: Bump to dev version
runs-on: ubuntu-latest
needs: publish
if: needs.publish.result == "success"
steps:
- name: Checkout code
uses: ./.github/workflows/bump.yml
with:
rule: prerelease