Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LecrisUT committed Jun 28, 2024
1 parent da781ab commit 6df287a
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
run-name: 🚀 Release ${{ github.ref_name }}

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@v2
upload_pypi:
name: Upload to PyPI repository
needs: [ build ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/click-repl/
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
release:
needs: [ upload_pypi ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
generate_release_notes: true

0 comments on commit 6df287a

Please sign in to comment.