Skip to content

Workflow file for this run

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 }}