diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml new file mode 100644 index 0000000..5ebd58e --- /dev/null +++ b/.github/workflows/github-release.yml @@ -0,0 +1,17 @@ +name: Release + +on: + milestone: + types: + - closed + +jobs: + releasing: + runs-on: ubuntu-latest + steps: + - name: Create a release with title of milestone + run: gh -R $GITHUB_REPOSITORY release create $REL_TAG -t $REL_TAG -n "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/milestone/$MS_ID?closed=1" + env: + GITHUB_TOKEN: ${{secrets.REPO_GITHUB_TOKEN}} + REL_TAG: ${{github.event.milestone.title}} + MS_ID: ${{github.event.milestone.number}}