Skip to content

Commit

Permalink
chore: automate to create release
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlinjui committed Aug 14, 2024
1 parent 8f9373f commit ccc4160
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish to PyPI
on:
push:
tags:
- '*'
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -24,10 +24,12 @@ jobs:
poetry_publish_options: "--skip-existing"

- name: Create Release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
files: ./dist/*
make_latest: true
body: |
This is a release for the version ${{ github.ref }}.
PyPI package: https://pypi.org/project/${{ github.repository }}/${{ github.ref }}
This is a release for the version ${{ github.ref_name }}.
PyPI package: https://pypi.org/project/${{ github.event.repository.name }}/${{ github.ref_name }}

0 comments on commit ccc4160

Please sign in to comment.