Skip to content

Commit

Permalink
chore: gha to deploy zeus testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Feb 13, 2025
1 parent 441339c commit f1a5416
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy Tenderly Testnet

on:
workflow_dispatch:
inputs:
upgrade_name:
description: "Enter the upgrade name (subdirectory in script/releases)"
required: true
type: string
environment:
description: "Select the environment"
required: true
type: choice
options:
- preprod
- testnet
- mainnet

# Ensures only those with write access can trigger this workflow.
permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Verify upgrade_name directory exists
id: check_dir
run: |
if [ ! -d "script/releases/${{ github.event.inputs.upgrade_name }}" ]; then
echo "Error: The upgrade_name directory 'script/releases/${{ github.event.inputs.upgrade_name }}' does not exist!"
exit 1
fi
- name: Install Zeus CLI
run: npm install -g @layr-labs/zeus

- name: Run Zeus Deployment
env:
TENDERLY_API_KEY: ${{ secrets.TENDERLY_API_KEY }}
TENDERLY_ACCOUNT_SLUG: ${{ secrets.TENDERLY_ACCOUNT_SLUG }}
TENDERLY_PROJECT_SLUG: ${{ secrets.TENDERLY_PROJECT_SLUG }}
run: |
zeus run deploy \
--env "${{ github.event.inputs.environment }}" \
--upgrade "${{ github.event.inputs.upgrade_name }}" \
--fork tenderly

0 comments on commit f1a5416

Please sign in to comment.