Skip to content

Commit

Permalink
馃悰 get the tag name from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cuicaihao committed Mar 23, 2024
1 parent 673f0ab commit c204f86
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/python-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,24 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Get Package version
id: get_version
run: |
echo ::set-output name=version::$(python setup.py --version)
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ steps.get_version.outputs.version }}
release_name: Release ${{ steps.get_version.outputs.version }}
draft: false
prerelease: false

Expand Down

0 comments on commit c204f86

Please sign in to comment.