Skip to content

Instantly share code, notes, and snippets.

@PatilShreyas
Created January 21, 2022 12:25
Show Gist options
  • 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