Skip to content

Commit

Permalink
Setup auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pwaller committed Sep 10, 2023
1 parent b6f25c3 commit 7df3e4a
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -35,3 +34,27 @@ jobs:
- name: Test with pytest
run: |
pytest -vv
pypi-publish:
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: publish
url: https://pypi.org/p/pyfiglet
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Build full dist
run: |
python -m pip install --upgrade pip
make full
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 7df3e4a

Please sign in to comment.