Skip to content

Instantly share code, notes, and snippets.

@ktvipin27
Last active July 4, 2020 11:15
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 ktvipin27/f3dd93ce28b96dfd79197c0296f603cc to your computer and use it in GitHub Desktop.
Save ktvipin27/f3dd93ce28b96dfd79197c0296f603cc to your computer and use it in GitHub Desktop.
Sample workflow file for automating github release
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set release name
run: echo ::set-env name=RELEASE_NAME::$(echo ${GITHUB_REF:11})
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.RELEASE_NAME }}
body: |
What is new :
- First Change
- Second Change
draft: false
prerelease: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment