Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created January 21, 2022 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatilShreyas/b70fd9142845e3287a9a49964ca0b6db to your computer and use it in GitHub Desktop.
Save PatilShreyas/b70fd9142845e3287a9a49964ca0b6db to your computer and use it in GitHub Desktop.
- name: Create and push tag
run: |
git config --global user.email "shreyaspatilg@gmail.com"
git config --global user.name "$GITHUB_ACTOR"
git tag -a $TAG -m "Release v$TAG"
git push origin $TAG
env:
TAG: ${{ github.event.inputs.versionName }}
- name: Create Release on GitHub
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.inputs.versionName }}
release_name: MyLib ${{ github.event.inputs.versionName }}
draft: true
prerelease: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment