From 2eaebdff60c2b414014167956901018d76c2fff7 Mon Sep 17 00:00:00 2001 From: BANADDA MUBARAKA <83466862+BANADDA@users.noreply.github.com> Date: Thu, 17 Sep 2026 14:53:00 +0300 Subject: [PATCH] images: publish the rig challenge library as a release asset --- .github/workflows/images.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/images.yml b/.github/workflows/images.yml index c4f6d09..e82ba6e 100644 --- a/.github/workflows/images.yml +++ b/.github/workflows/images.yml @@ -24,6 +24,22 @@ jobs: path: challenge/build/libmtchallenge.so if-no-files-found: error + library-release: + needs: challenge-miner + if: startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@v4 + with: + name: libmtchallenge + path: build + - run: sha256sum build/libmtchallenge.so | cut -d' ' -f1 > build/libmtchallenge.so.sha256 + - run: gh release create "${GITHUB_REF_NAME}" build/libmtchallenge.so build/libmtchallenge.so.sha256 --repo "${GITHUB_REPOSITORY}" --title "${GITHUB_REF_NAME}" --notes "rig challenge library ${GITHUB_REF_NAME}" || gh release upload "${GITHUB_REF_NAME}" build/libmtchallenge.so build/libmtchallenge.so.sha256 --repo "${GITHUB_REPOSITORY}" --clobber + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + agent-image: needs: challenge-miner runs-on: ubuntu-latest