Skip to content

Commit

Permalink
updated release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Jun 14, 2024
1 parent 27e7e73 commit e08f433
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
publish-release:
name: Publish release
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies + package
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
- name: Build release
if: success() && startsWith(github.ref, 'refs/tags')
shell: bash
run: |
python -m pip install --upgrade pip
pip install build twine
python -m build --wheel
twine check dist/*
twine upload dist/* --skip-existing
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}

0 comments on commit e08f433

Please sign in to comment.