Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sstucker authored May 28, 2024
1 parent 18eb3b7 commit fac7d66
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
name: Upload Python Package
name: Publish to PyPI 📦

on:
push:
tags:
- 'v*'

permissions:
contents: read
id-token: write

jobs:
deploy:

runs-on: ubuntu-latest

runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: 3.7.17
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
- name: Build
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit fac7d66

Please sign in to comment.