Skip to content

Commit

Permalink
Fix release action
Browse files Browse the repository at this point in the history
  • Loading branch information
penguineer committed Apr 8, 2022
1 parent c746371 commit a674642
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@ on:

jobs:
build:
name: "🚀 Release"
name: "Release"
runs-on: ubuntu-18.04
steps:
- name: "📥 Check-out"
- name: "Check-out"
uses: actions/checkout@v1
- name: "✏️ Generate release changelog"
- name: "Generate release changelog"
id: generate-release-changelog
uses: ./
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.CHANGELOG_TOKEN }}
onlyLastTag: "true"
token: ${{ secrets.GITHUB_TOKEN }}
onlyLastTag: "false" # set to true later (buggy with only one tag)
stripHeaders: "true"
stripGeneratorNotice: "true"
- name: "🚀 Create GitHub release"
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.CHANGELOG_TOKEN }}
- name: Get the version
id: get-version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: "Create GitHub release"
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: ${{ steps.generate-release-changelog.outputs.changelog }}
name: "${{ steps.get-version.name }}"
body: "${{ steps.generate-release-changelog.outputs.changelog }}"
prerelease: ${{ steps.get-version.name, 'v0.' }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: True

0 comments on commit a674642

Please sign in to comment.