Skip to content

Commit

Permalink
make new release action
Browse files Browse the repository at this point in the history
  • Loading branch information
jbohnslav committed Jan 12, 2025
1 parent b4ed225 commit 580ca24
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
release:
types: [created]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.7'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine wheel
pip install -e .
- name: Run tests
run: |
pip install pytest
pytest tests/
- name: Build package
run: |
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*

0 comments on commit 580ca24

Please sign in to comment.