From a90d97572310dbe36980f045fa529626cfb9ceba Mon Sep 17 00:00:00 2001 From: zankia Date: Sat, 23 Mar 2024 21:45:18 +0100 Subject: [PATCH] feat: Automatically add clients to release assets --- .github/workflows/actions.yml | 2 +- .github/workflows/release.yml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 960ec0ee..d62591e3 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,6 +1,6 @@ on: [push] jobs: - Test: + Tests: runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..e376a8f2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,14 @@ +on: + release: + types: [published] +jobs: + assets: + name: Push clients as assets + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} + VER: ${{ github.event.release.tag_name }} + steps: + - uses: actions/checkout@v4 + - run: gh release upload --clobber $VER js/damas.js#damas-$VER.js js/damas-socket.js#damas-socket-$VER.js + cli/damas#damas-$VER.sh py/damas_client.py#damas_$VER.py py/damas_socket.py#damas_socket_$VER.py