Skip to content

Commit

Permalink
Upload build artifacts to release
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jan 10, 2024
1 parent a4c0d9a commit 2ed532f
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ name: release
on:
push:
tags:
- 'v*'
- "*"

permissions:
contents: write

jobs:
release:
if: startsWith(github.ref, 'refs/tags/')
needs: build

if: startsWith(github.ref, "refs/tags/")

runs-on: ubuntu-latest

Expand Down Expand Up @@ -45,8 +47,21 @@ jobs:
]
}
- name: Create Release
id: create_release
uses: mikepenz/action-gh-release@v0.2.0-a03
- name: Create Changelog
run: |
echo ${{steps.github_release.outputs.changelog}} > ${{ github.workspace }}-CHANGELOG.txt
- name: Download Artifact
uses: actions/download-artifact@v4
with:
path: build
pattern: "* Build"
merge-multiple: true

- name: Release
uses: softprops/action-gh-release@v1
with:
body: ${{steps.github_release.outputs.changelog}}
draft: true
body_path: ${{ github.workspace }}-CHANGELOG.txt
fiels: |
build/*

0 comments on commit 2ed532f

Please sign in to comment.