fork/glide
git clone https://git.julia.blue/fork/glide
b1acaa9
v0.1.0
1# Automate releases with Release Please. 2# https://github.com/googleapis/release-please#release-please 3 4on : 5push : 6branches : 7- main 8 9permissions : 10contents : write 11issues : write 12pull-requests : write 13 14name : release-please 15 16jobs : 17release-please : 18runs-on : ubuntu-latest 19steps : 20# Create releases for merged release PRs. 21- name : Create releases for merged release PRs 22uses : googleapis/release-please-action@v4 23id : release 24with : 25# Note: We use the default github token here because it doesn't 26# actually do any workflow-triggering actions. The triggering step is 27# the tag, below. 28target-branch : main 29skip-github-pull-request : true 30 31# Ensure that a tag is created, even if the release is created as a draft. 32# This works around https://github.com/googleapis/release-please-action/issues/962. 33# It also triggers the package action, which will publish the release when finished. 34- uses : actions/checkout@v4 35with : 36# Use a custom access token so downstream actions are triggered. 37token : ${{ secrets.RELEASE_PLEASE_TOKEN }} 38- name : tag release 39if : ${{ steps.release.outputs.release_created }} 40run : | 41git config user.name github-actions[bot] 42git config user.email github-actions[bot]@users.noreply.github.com 43git tag -d ${{ steps.release.outputs.tag_name }} || true 44git tag -a ${{ steps.release.outputs.tag_name }} -m "Release ${{ steps.release.outputs.tag_name }}" 45git push origin ${{ steps.release.outputs.tag_name }} 46 47# Add a comment with a durable link instead of the temporary unpublished one. 48- name : Find merged PR 49# release-please doesn't give us PR info even though the docs say it 50# will on release creation. 51if : steps.release.outputs.release_created 52uses : jwalton/gh-find-current-pr@master 53id : pr 54with : 55state : closed 56- name : Comment on merged PR 57if : steps.release.outputs.release_created && steps.pr.outputs.number 58uses : actions/github-script@v7 59with : 60script : | 61const prNumber = ${{ steps.pr.outputs.number }}; 62github.rest.issues.createComment({ 63owner: context.repo.owner, 64repo: context.repo.repo, 65issue_number: prNumber, 66body: `Packaging action triggered. Release will be available here when complete: 67 68${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ steps.release.outputs.tag_name }}` 69}); 70 71- name : Create release PRs for new commits on main 72uses : googleapis/release-please-action@v4 73with : 74# Use a custom access token so pull request actions are triggered. 75token : ${{ secrets.RELEASE_PLEASE_TOKEN }} 76target-branch : main 77skip-github-release : true