Skip to content

Commit

Permalink
add 'release' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xlcnd committed May 2, 2021
1 parent 411baf8 commit 8b5fa84
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
tags:
- 'v*'

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Check if it is 'NOT RELEASED'
shell: bash
run: |
[[ ! -z $(tail -1 CHANGES.txt | grep -o 'NOT RELEASED\|TENTATIVE') ]] && echo 'NO_RELEASE condition detected! Skip release.' && exit 1 || exit 0
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: release.md
draft: false
prerelease: false
3 changes: 3 additions & 0 deletions release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## What's new?

1. TENTATIVE...

0 comments on commit 8b5fa84

Please sign in to comment.