Skip to content

Commit

Permalink
CI: complete setup of release workflow
Browse files Browse the repository at this point in the history
Finally closes #7.
  • Loading branch information
v1993 authored Oct 28, 2023
1 parent 36b36ee commit 6f50c69
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release flatpaks

on:
workflow_run:
Expand All @@ -8,7 +8,7 @@ on:
jobs:
release:
runs-on: ubuntu-latest
#if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')

permissions:
contents: write
Expand All @@ -28,11 +28,9 @@ jobs:
mkdir upload
find artifacts -mindepth 1 -type d -exec sh -c 'cp "$0"/nxdumpclient.flatpak upload/$(basename "$0").flatpak' {} \;
echo "Files to upload:"
find upload
find upload -type f -printf '%f\n'
- name: Upload artifacts to GitHub release
# TODO: remove, uncomment the job-wide one
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: upload/*

0 comments on commit 6f50c69

Please sign in to comment.