Skip to content

Commit

Permalink
ci: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
niracler committed Dec 20, 2023
1 parent f20465b commit a656933
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
name: Create Release
name: Main

on:
push:
tags:
- '*'
on: push

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

- name: Get release notes
id: release_notes
run: |
RELEASE_NOTES=$(cat CHANGELOG.md)
echo "::set-output name=body::$RELEASE_NOTES"
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ steps.release_notes.outputs.body }}
draft: false
prerelease: false
- name: Checkout
uses: actions/checkout@v3
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')

0 comments on commit a656933

Please sign in to comment.