Add workflow that deploys to staging

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-15 11:01:46 +01:00
parent ffdc2b4059
commit 3d26da0d99
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

26
.github/workflows/deploy.yml vendored Normal file
View 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