forked from dkaser/unraid-tailscale-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1.1 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: build_files
run: |
mkdir release
cd src
tar --owner=0 --group=0 -cJf ../release/unraid-tailscale-utils-${{ github.event.release.name}}-noarch-1.txz *
cd ../release
sha256sum unraid-tailscale-utils-${{ github.event.release.name}}-noarch-1.txz | awk '{print $1}' > unraid-tailscale-utils-${{ github.event.release.name}}-noarch-1.txz.sha256
echo "checksum=$(cat unraid-tailscale-utils-${{ github.event.release.name}}-noarch-1.txz.sha256)" >> $GITHUB_OUTPUT
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: release/*
- name: Add checksum to release description
uses: djn24/add-comment-to-release@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
comment: |-
unraid-tailscale-utils-${{ github.event.release.name}}-noarch-1.txz : ${{ steps.build_files.outputs.checksum }}