Skip to content

Commit

Permalink
Automatically add artifacts to releases (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana authored Nov 27, 2020
1 parent 88277c9 commit 5cee6da
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit 5cee6da

Please sign in to comment.