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