Add workflow that deploys to staging
This commit is contained in:
parent
ffdc2b4059
commit
3d26da0d99
1 changed files with 26 additions and 0 deletions
26
.github/workflows/deploy.yml
vendored
Normal file
26
.github/workflows/deploy.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Deploy to staging
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Deploy to staging
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Wait for tests to succeed
|
||||||
|
uses: lewagon/wait-on-check-action@v1.0.0
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
running-workflow-name: Deploy to staging
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
wait-interval: 10
|
||||||
|
- name: git-checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Push
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
branch: staging
|
||||||
|
force: true
|
Loading…
Reference in a new issue