Skip to content

Commit

Permalink
release yaml ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaynagi committed Jan 9, 2024
1 parent e05bef6 commit 4b19e72
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry==1.7.1

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'

- name: Configure poetry
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- name: Build package
run: poetry build

- name: Publish to PyPI
run: poetry publish

0 comments on commit 4b19e72

Please sign in to comment.