Skip to content

Commit

Permalink
GHA: minor update to create release parameters more
Browse files Browse the repository at this point in the history
  • Loading branch information
mahiki committed Jul 22, 2024
1 parent c25f4c2 commit d4a720d
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release desertislandutils
name: Publish Release
# create a release from the latest tag on MAIN or something

env:
Expand Down Expand Up @@ -34,23 +34,28 @@ jobs:
- name: Get Latest Tag
id: get_tag
run: |
git branch --list
git log --oneline --tags -n10 --pretty=format:'%h %as %cn %x09%s %d'
echo
echo "current ref is ${{ github.ref_name }}"
latest_tag="$(git describe --tags --abbrev=0)"
echo "latest tag: ${latest_tag}"
echo latest_tag="${latest_tag}" >> $GITHUB_OUTPUT
git branch --list
git log --oneline --tags -n10 --pretty=format:'%h %as %cn %x09%s %d'
echo
echo "current ref is ${{ github.ref_name }}"
latest_tag="$(git describe --tags --abbrev=0)"
echo "latest tag: ${latest_tag}"
echo latest_tag="${latest_tag}" >> $GITHUB_OUTPUT
- name: Build Poetry Distribution from Latest Tag
run: |
git checkout "${{ steps.get_tag.outputs.latest_tag }}"
poetry build
git checkout "${{ steps.get_tag.outputs.latest_tag }}"
poetry build
- name: Create release from tag
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
generateReleaseNotes: true
allowUpdates: true
tag: ${{ steps.get_tag.outputs.latest_tag }}

- name: Release URL Output
run: |
echo release URL: ${{ steps.create_release.outputs.html_url }}

0 comments on commit d4a720d

Please sign in to comment.