Deploy Test Token #5
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: "Deploy Test Token" | |
env: | |
API_KEY_ETHERSCAN: ${{ secrets.API_KEY_ETHERSCAN }} | |
API_KEY_INFURA: ${{ secrets.API_KEY_INFURA }} | |
MNEMONIC: ${{ secrets.MNEMONIC }} | |
on: | |
workflow_dispatch: | |
inputs: | |
chain: | |
default: "goerli" | |
description: "Chain name as defined in the Foundry config." | |
required: false | |
jobs: | |
deploy-test-token: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out the repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
- name: "Deploy a test ERC-20 token contract" | |
run: >- | |
forge script script/DeployTestToken.s.sol \ | |
--broadcast \ | |
--rpc-url "${{github.event.inputs.chain }}" \ | |
--verify \ | |
-vvvv | |
- name: "Add summary" | |
run: | | |
echo "## Deployment result" >> $GITHUB_STEP_SUMMARY | |
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY |