Skip to content

Commit

Permalink
Update release workflow (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane authored Sep 7, 2024
1 parent 979ff1a commit 287af13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [published]

permissions:
contents: write

jobs:
build-and-publish:
name: Build and publish to PyPi
Expand All @@ -23,6 +26,11 @@ jobs:
- name: Build
run: |
python3 -m build --sdist --wheel --outdir dist/ .
- name: Upload to release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ github.ref }} dist/*
- name: Publish
# if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 287af13

Please sign in to comment.