From 129c41a4d70e396886119512e5c3a8bf402b0d2b Mon Sep 17 00:00:00 2001 From: Devan Non Date: Thu, 10 Mar 2022 15:02:34 +0000 Subject: [PATCH] release job for ABIs --- .github/workflows/tests.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e04ae01..b7892cf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,6 +4,8 @@ on: push: branches: - master + tags: + - 'v*.*.*' pull_request: jobs: @@ -21,4 +23,14 @@ jobs: version: nightly - name: Run Tests - run: FOUNDRY_PROFILE=ci forge test \ No newline at end of file + run: FOUNDRY_PROFILE=ci forge test + + - name: Publish ABIs + if: startsWith(github.ref, 'refs/tags/v') + uses: softprops/action-gh-release@v1 + with: + name: ABIs + files: | + ./out/Multicall.sol/Multicall.json + ./out/Multicall2.sol/Multicall2.json + ./out/Multicall3.sol/Multicall3.json