-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically add artifacts to releases (#102)
- Loading branch information
1 parent
88277c9
commit 5cee6da
Showing
1 changed file
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Upload Latest Artifacts to Release | ||
|
||
on: | ||
release: | ||
types: [released, edited] | ||
|
||
jobs: | ||
package: | ||
name: Release New Desktop App | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download latest artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
workflow: build.yml | ||
branch: master | ||
- name: Flatten Directory structure | ||
run: | | ||
find ./ -mindepth 2 -type f -exec mv -t ./ -i '{}' + | ||
find . -type d -empty -delete | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ./* | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
file_glob: true |