Skip to content

Merge pull request #2 from ryanlinjui/0.1.x #19

Merge pull request #2 from ryanlinjui/0.1.x

Merge pull request #2 from ryanlinjui/0.1.x #19

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build and Publish to PyPI
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PIPY_API_TOKEN }}
poetry_publish_options: "--skip-existing"
- name: Create Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
This is a release for the version ${{ github.ref }}.
PyPI package: https://pypi.org/project/${{ github.repository }}/${{ github.ref }}