Skip to content

Merge pull request #56 from dave3d/UpdateREADME #5

Merge pull request #56 from dave3d/UpdateREADME

Merge pull request #56 from dave3d/UpdateREADME #5

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*'
concurrency:
group: publish
jobs:
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
name: Upload release to Github Releases and PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
environment: publish
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Build package
run: |
python -m pip install twine build
python -m build --wheel --sdist
python -m twine check dist/*
ls -la dist
- name: Create Release and Upload
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ github.ref_name }} --repo ${{ github.repository }} --verify-tag --generate-notes --title "Release ${{ github.ref_name }}"
gh release upload ${{ github.ref_name }} --repo ${{ github.repository }} dist/*