Skip to content

Fix prod deploy config and reset staging after main merge (#69) #2

Fix prod deploy config and reset staging after main merge (#69)

Fix prod deploy config and reset staging after main merge (#69) #2

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 main --hard
git push origin mainnet -f
merge-staging:
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 staging
git checkout staging
git reset main --hard
git push origin staging -f