Skip to content

Commit 385efa5

Browse files
authored
Merge pull request #14 from DarkLord017/main
Add GitHub Actions workflow for ABI release
2 parents 099c025 + 533f7db commit 385efa5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/abi-release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: ABI Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
release-abi:
10+
name: Release ABI
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
19+
- name: Install Foundry
20+
uses: foundry-rs/foundry-toolchain@v1
21+
22+
- name: Build contracts
23+
run: forge build
24+
25+
- name: Extract ABIs
26+
run: |
27+
mkdir -p abis
28+
jq '.abi' out/FilBeamOperator.sol/FilBeamOperator.json \
29+
> abis/FilBeamOperator.abi.json
30+
31+
- name: Publish ABIs to GitHub Release
32+
uses: softprops/action-gh-release@v2
33+
with:
34+
tag_name: ${{ github.ref_name }}
35+
files: |
36+
abis/**

0 commit comments

Comments
 (0)