Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
priyagupta108 authored Oct 28, 2024
1 parent 6f33e57 commit ea38f3f
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
LATEST_COMMIT=$(git rev-parse HEAD)
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
gh release create $LATEST_COMMIT --draft --title "Release $LATEST_COMMIT" \
"https://github.com/priyagupta108/sample-python/archive/refs/tags/$LATEST_TAG.zip#sample-python-$LATEST_TAG.zip" \
"https://github.com/priyagupta108/sample-python/archive/refs/tags/$LATEST_TAG.tar.gz#sample-python-$LATEST_TAG.tar.gz"
# run: |
# LATEST_COMMIT=$(git rev-parse HEAD)
# LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
# gh release create "${{ github.event.inputs.tool-version }}-${{ github.run_id }}" --draft --title "Release $LATEST_COMMIT" \
# --notes "${{ steps.generate-release-body.outputs.RELEASE_BODY }}" \
# "https://github.com/priyagupta108/sample-python/archive/refs/tags/v1.0.0.zip#sample-python-v1.0.0.zip" \
# "https://github.com/priyagupta108/sample-python/archive/refs/tags/v1.0.0.tar.gz#sample-python-v1.0.0.tar.gz"

LATEST_COMMIT=$(git rev-parse HEAD)
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
gh release create $LATEST_COMMIT --draft --title "Release $LATEST_COMMIT" \
--repo="$GITHUB_REPOSITORY" \
--title="${LATEST_TAG#v}" \
--generate-notes
# \
# "https://github.com/priyagupta108/sample-python/archive/refs/tags/$LATEST_TAG.zip#sample-python-$LATEST_TAG.zip" \
# "https://github.com/priyagupta108/sample-python/archive/refs/tags/$LATEST_TAG.tar.gz#sample-python-$LATEST_TAG.tar.gz"

0 comments on commit ea38f3f

Please sign in to comment.