-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c746371
commit a351b39
Showing
1 changed file
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: "bla ${{ steps.get-version.outputs.VERSION }}" | ||
body: "${{ steps.generate-release-changelog.outputs.changelog }}" | ||
prerelease: ${{ startsWith(steps.get-version.outputs.VERSION, 'v0.') }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: True |