File tree Expand file tree Collapse file tree 2 files changed +73
-1
lines changed Expand file tree Collapse file tree 2 files changed +73
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
7+ tags :
8+ - ' v*'
9+ pull_request :
10+ workflow_dispatch :
11+
12+ env :
13+ FOUNDRY_PROFILE : ci
14+
15+ jobs :
16+ test-and-release :
17+ strategy :
18+ fail-fast : true
19+
20+ name : Foundry project
21+ permissions :
22+ contents : write
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v4
26+ with :
27+ submodules : recursive
28+
29+ - name : Install Foundry
30+ uses : foundry-rs/foundry-toolchain@v1
31+
32+ - name : Show Forge version
33+ run : |
34+ forge --version
35+
36+ - name : Run Forge fmt
37+ run : |
38+ forge fmt --check
39+ id : fmt
40+
41+ - name : Run Forge build
42+ run : |
43+ forge build --sizes
44+ id : build
45+
46+ - name : Run Forge tests
47+ run : |
48+ forge test --gas-report -vvv
49+ id : test
50+
51+ - name : Release Marketplace.json
52+ if : startsWith(github.ref, 'refs/tags/v')
53+ env :
54+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Built-in token for repo access
55+ run : |
56+ TAG_NAME="${GITHUB_REF##*/}"
57+
58+ echo "Creating release for $TAG_NAME"
59+
60+ gh release create "$TAG_NAME" \
61+ --title "$TAG_NAME" \
62+ --notes "Automated release for $TAG_NAME" \
63+ || echo "Release already exists, continuing..."
64+
65+ CONTRACT_ARTIFACT_PATH="out/Marketplace.sol/Marketplace.json"
66+
67+ if [[ -f "$CONTRACT_ARTIFACT_PATH" ]]; then
68+ gh release upload "$TAG_NAME" "$CONTRACT_ARTIFACT_PATH" --clobber
69+ else
70+ echo "❌ Contract artifact not found: $CONTRACT_ARTIFACT_PATH"
71+ exit 1
72+ fi
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Changed
1111
12- - ` submitReward ` accepts integer rewards, not only uints [ PR#] ( )
12+ - ` submitReward ` accepts integer rewards [ PR #42 ] ( https://github.com/gensyn-ai/rl-swarm-contracts/pull/42 )
1313
1414[ 0.4.1]
1515
You can’t perform that action at this time.
0 commit comments