Skip to content

Update python-publish.yml #15

Update python-publish.yml

Update python-publish.yml #15

Workflow file for this run

name: CD
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: "1.6.1"
- name: Bump version
run: poetry version ${{github.ref_name}}
- name: Set credential
run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- name: Build and publish to pypi
run: poetry publish --build