Skip to content

Commit

Permalink
add link to changes
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Mar 7, 2024
1 parent 137b5e3 commit 32344f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 54 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/bitbucket.yml

This file was deleted.

9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,15 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
notes="This release includes an XPI file that is automatically generated after each push to the main branch."
if ! gh release view dev-build > /dev/null 2>&1; then
gh release create dev-build --title "Development Build" --notes "This release includes an XPI file that is automatically generated after each push to the main branch." --draft --prerelease
gh release create dev-build --title "Development Build" --notes "$notes" --draft --prerelease
fi
version_tag=$(git tag --sort=-creatordate | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
if [ $(git rev-parse $version_tag) != $(git rev-parse HEAD) ]; then
changes_url="https://github.com/onemen/TabMixPlus/compare/$version_tag...dev_build"
notes="$notes\n\n$changes_url"
gh release edit dev-build --notes="$notes"
fi
gh release edit dev-build --draft=false
gh release upload dev-build /tmp/${{ env.XPI_NAME }}.xpi --clobber
Expand Down

0 comments on commit 32344f8

Please sign in to comment.