pmlag

Poor man's link aggregation
git clone git://git.finwo.net/app/pmlag
Log | Files | Refs | README | LICENSE

commit 74841c30884041f11bd62f5d2f8aacad866b54f7
parent 6b14488e84b678371652497d870fcb1b16c225ab
Author: Yersa Nordman <yersa@finwo.nl>
Date:   Tue, 14 Mar 2023 23:38:10 +0100

Use softprops' work instead of curling ourselves

Diffstat:
M.github/workflows/tag-assets.yml | 8+++++---
Dscripts/gha-attach-assets.sh | 5-----
Dscripts/gha-create-release.sh | 5-----
3 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/tag-assets.yml b/.github/workflows/tag-assets.yml @@ -15,7 +15,9 @@ jobs: - run: dep install - run: make clean - run: make package - - run: scripts/gha-create-release.sh - - run: scripts/gha-attach-assets.sh - + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + package/pmlag-linux-amd64.tar.gz diff --git a/scripts/gha-attach-assets.sh b/scripts/gha-attach-assets.sh @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -pwd - - # - run: 'curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${GITHUB_TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" -H "Content-Type: application/octet-stream" https://uploads.github.com/repos/${GITHUB_REPOSITORY}/tags/${GITHUB_REF/refs\/tags\//}/assets?name=pmlag-linux-amd64.tar.gz --data-binary "@package/pmlag-linux-amd64.tar.gz"' diff --git a/scripts/gha-create-release.sh b/scripts/gha-create-release.sh @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -pwd - - # 'curl -L -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${GITHUB_TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/${GITHUB_REPOSITORY}/releases --data "{\\"tag_name\\":\\${GITHUB_REF/refs\/tags\//}"\\"}"'