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 4c7f78d
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
needs: build

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

runs-on: ubuntu-latest
Expand Down Expand Up @@ -45,8 +42,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 4c7f78d

Please sign in to comment.