Skip to content

Commit

Permalink
CI/CD Publish release in GitHub repository. resolves #34
Browse files Browse the repository at this point in the history
  • Loading branch information
ngosang committed Dec 20, 2020
1 parent 89aed86 commit cd4f487
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,32 @@
name: release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@main
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.github_release.outputs.changelog }}
draft: false
prerelease: false

0 comments on commit cd4f487

Please sign in to comment.