Skip to content

Commit 1444b01

Browse files
committed
Improve release process
1 parent b78cd7d commit 1444b01

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/compilation.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@ jobs:
4242
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
4343

4444
- name: Compress & Rename bin folder
45-
run: |
46-
mv release/ psplinkusb/
47-
tar -zcvf psplinkusb-${{ steps.slug.outputs.sha8 }}.tar.gz psplinkusb
45+
run: |
46+
tar -zcvf psplinkusb.tar.gz release/psplink
4847
4948
- name: Create pre-release
5049
if: github.ref == 'refs/heads/master'
5150
uses: softprops/action-gh-release@v1
5251
with:
53-
files: psplinkusb-${{ steps.slug.outputs.sha8 }}.tar.gz
52+
files: |
53+
psplinkusb.tar.gz
54+
release/psplink_manual.pdf
5455
prerelease: true
5556
name: "Development build"
5657
tag_name: "latest"
@@ -61,7 +62,9 @@ jobs:
6162
if: startsWith(github.ref, 'refs/tags/')
6263
uses: softprops/action-gh-release@v1
6364
with:
64-
files: psplinkusb-${{ steps.slug.outputs.sha8 }}.tar.gz
65+
files: |
66+
psplinkusb.tar.gz
67+
release/psplink_manual.pdf
6568
tag_name: ${{ steps.tag.outputs.VERSION }}
6669
env:
6770
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)