Skip to content

Commit

Permalink
Add deploy config for prod networks
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Jul 9, 2023
1 parent d9b6e1e commit 5b4a2a2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deployments_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy prod

on:
push:
branches:
- main

jobs:
merge-mainnet:
runs-on: ubuntu-latest
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 mainnet
git checkout mainnet
git reset staging --hard
git push origin mainnet -f
20 changes: 4 additions & 16 deletions .github/workflows/deployments_staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy
name: Deploy staging

on:
push:
Expand All @@ -7,15 +7,11 @@ on:

jobs:
merge-testnet:
name: Merge Staging to Testnet
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Merge Staging to Testnet
run: |
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin testnet
Expand All @@ -24,15 +20,11 @@ jobs:
git push origin testnet -f
merge-testnet2:
name: Merge Staging to Testnet2
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Merge Staging to Testnet
run: |
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin testnet2
Expand All @@ -41,15 +33,11 @@ jobs:
git push origin testnet2 -f
merge-goerli:
name: Merge Staging to Goerli
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Merge Staging to Goerli
run: |
- run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git fetch origin goerli
Expand Down

0 comments on commit 5b4a2a2

Please sign in to comment.