Skip to content

Commit

Permalink
Merge pull request #215 from skip-mev/deploy-testnet
Browse files Browse the repository at this point in the history
deploy testnet
  • Loading branch information
codingki authored Mar 21, 2024
2 parents 0a82958 + 60bfb2c commit 39891fb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy (dev)
on:
pull_request:
branches: [staging]
types: [closed]
push:
branches: [testnet]
repository_dispatch:
types: [deploy-testnet]
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
with:
ref: testnet

- id: pull-staging
name: Pull latest 'staging'
run: git pull origin staging

- id: diff-check
name: Check if 'testnet' is behind 'staging'
run: git diff --exit-code origin/staging

- id: fast-forward
name: Fast forward 'staging' → 'testnet'
run: git merge --ff-only origin/staging

- id: push-dev
name: Push latest 'dev'
run: git push --set-upstream origin testnet

0 comments on commit 39891fb

Please sign in to comment.