Skip to content

Commit

Permalink
Add CI tool for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
velovix committed Nov 11, 2024
1 parent 4425eb8 commit b427df8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
release:
types:
- created

jobs:
pypi:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install Project
run: poetry install
- name: Build and Upload
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish --build

0 comments on commit b427df8

Please sign in to comment.