Skip to content

Commit

Permalink
Create publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanAugust authored Feb 9, 2024
1 parent e26d6dd commit 971c347
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish to PyPI
on:
push:
tags:
- "*"

jobs:
tests:
uses: ./.github/workflows/test.yaml
publish:
name: publish
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build package
run: |
python -m pip install -U pip build
python -m build
- name: Publish
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}

0 comments on commit 971c347

Please sign in to comment.