Prepare Release #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prepare Release | |
on: | |
push: | |
tags: | |
- '*' | |
env: | |
FOUNDRY_PROFILE: ci | |
permissions: | |
contents: write | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: Foundry project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run Forge build | |
run: | | |
forge build | |
- name: Prepare Release | |
run: | | |
export RPC_URL=$(echo $deployer_config | jq -r ".$network.rpc_url") | |
export CODE_JAR=$(echo $deployer_config | jq -r ".$network.code_jar") | |
script/prepare-release.sh | |
env: | |
deployer_config: ${{ secrets.deployer_config }} | |
network: sepolia | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "release/Sleuth.json,release/Sleuth.sol,release/contracts.json,release/sleuth@*" | |
bodyFile: "release/RELEASE.md" | |
allowUpdates: true |