Skip to content

Commit

Permalink
Create github-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongl authored Oct 18, 2021
1 parent 2c019e3 commit 47c33f6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 47c33f6

Please sign in to comment.