-
Notifications
You must be signed in to change notification settings - Fork 5
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
aaa01cb
commit 7be239e
Showing
1 changed file
with
11 additions
and
13 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 |
---|---|---|
@@ -1,15 +1,10 @@ | ||
name: Release | ||
|
||
# This will trigger the action on each push to the `release` branch. | ||
on: | ||
#push: | ||
# tags: | ||
# - "v*.*.*" | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
type: string | ||
description: Release tag | ||
required: true | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
build-ubuntu: | ||
|
@@ -75,7 +70,7 @@ jobs: | |
path: out/make/ | ||
retention-days: 1 | ||
release: | ||
name: Create a new github release ${{ inputs.tag }} | ||
name: Create a new github release | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
@@ -93,18 +88,21 @@ jobs: | |
with: | ||
name: japReader-artifacts windows-latest | ||
path: make/ | ||
- name: Get current package version | ||
uses: martinbeentjes/[email protected] | ||
- name: Get Release body from CHANGELOG.md | ||
run: sed -e '/^$/,$d' CHANGELOG.md > CHANGELOG-${{ inputs.tag }}.md | ||
run: sed -e '/^$/,$d' CHANGELOG.md > CHANGELOG-${{ steps.package-version.outputs.current-version }}.md | ||
- run: tree . | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: CHANGELOG-${{ inputs.tag }}.md | ||
draft: true | ||
body_path: CHANGELOG-${{ steps.package-version.outputs.current-version }}.md | ||
files: | | ||
make/deb/x64/*.deb | ||
make/rpm/x64/*.rpm | ||
make/zip/linux/x64/*.zip | ||
make/zip/win32/x64/*.zip | ||
make/squirrel.windows/x64/*.exe | ||
Anki_japReader.apkg | ||
tag_name: ${{ inputs.tag }} | ||
tag_name: ${{ steps.package-version.outputs.current-version }} |