Skip to content

Commit

Permalink
Update ci deployment jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Oct 9, 2023
1 parent f3a6fa8 commit 0b0c634
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 66 deletions.
41 changes: 8 additions & 33 deletions .github/workflows/deployments_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,19 @@ on:
- main

jobs:
merge-mainnet:
merge:
runs-on: ubuntu-latest
permissions: write-all
strategy:
matrix:
branch: [mainnet, optimism, linea, staging]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin mainnet
git checkout mainnet
git fetch origin ${{ matrix.branch }}
git checkout ${{ matrix.branch }}
git reset main --hard
git push origin mainnet -f
merge-optimism-mainnet:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin optimism
git checkout optimism
git reset main --hard
git push origin optimism -f
merge-staging:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin staging
git checkout staging
git reset main --hard
git push origin staging -f
git push origin ${{ matrix.branch }} -f
41 changes: 8 additions & 33 deletions .github/workflows/deployments_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,19 @@ on:
- staging

jobs:
merge-testnet:
merge:
runs-on: ubuntu-latest
permissions: write-all
strategy:
matrix:
branch: [testnet, testnet2, goerli]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin testnet
git checkout testnet
git fetch origin ${{ matrix.branch }}
git checkout ${{ matrix.branch }}
git reset staging --hard
git push origin testnet -f
merge-testnet2:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin testnet2
git checkout testnet2
git reset staging --hard
git push origin testnet2 -f
merge-goerli:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin goerli
git checkout goerli
git reset staging --hard
git push origin goerli -f
git push origin ${{ matrix.branch }} -f

0 comments on commit 0b0c634

Please sign in to comment.