commit cbeb4f535fcc1e225820b34687ded9f2e48ccc81 parent c6dc082fdb96d01f1adeb5c3f1d2784610fa8021 Author: Yersa Nordman <yersa@finwo.nl> Date: Tue, 14 Mar 2023 22:58:45 +0100 New workflow to add assets to tags Diffstat:
| A | .github/workflows/tag-assets.yml | | | 31 | +++++++++++++++++++++++++++++++ |
1 file changed, 31 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/tag-assets.yml b/.github/workflows/tag-assets.yml @@ -0,0 +1,31 @@ +name: Tag Assets + +on: + push: + tags: + - stable + - edge + +jobs: + + attach_asset_amd64: + name: Attach assets linux-amd64 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: finwo/dep@edge + - run : dep install + - run : make clean + - run : make package + - run : echo ${GITHUB_REPOSITORY} + - run : echo ${GITHUB_REF} + + # - 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/finwo/pmlag/tags/${GITHUB_REF/refs\/tags\//}/assets?name=pmlag-linux-amd64.tar.gz \ + # --data-binary "@package/pmlag-linux-amd64.tar.gz"