Skip to content

Commit

Permalink
update release.yml action
Browse files Browse the repository at this point in the history
  • Loading branch information
marisukukise committed May 3, 2024
1 parent aaa01cb commit 7be239e
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/release.yml
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:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 7be239e

Please sign in to comment.