Skip to content

Commit

Permalink
refactor(ci): run taiki-e action to create release
Browse files Browse the repository at this point in the history
  • Loading branch information
baggiponte committed Jul 12, 2023
1 parent 46b253e commit b62bdef
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions {{ cookiecutter.__repo_name }}/.github/workflows/release-create.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
{% raw %}
name: Create Release

permissions:
contents: write

on:
push:
tags:
- "*"

jobs:
release-create:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" # access a private repo
- name: Get Release Notes
id: get_release_notes
run: |
awk 'NR>3 && /^## /{exit} {print}' CHANGELOG.md > .release.md
- name: Create Release
uses: actions/create-release@main
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" # access a private repo
- uses: taiki-e/create-gh-release-action@v1
with:
tag_name: ${{ github.ref }}
release_name: v${{ github.ref }}
body_path: .release.md
draft: false
prerelease: false
changelog: CHANGELOG.md
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # required
branch: main
{% endraw %}

0 comments on commit b62bdef

Please sign in to comment.