nixos-config/.github/workflows/deploy.yml

28 lines
652 B
YAML
Raw Normal View History

2022-04-15 10:01:46 +00:00
name: Deploy to staging
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to staging
runs-on: ubuntu-latest
steps:
2022-04-15 10:21:58 +00:00
2022-04-15 10:01:46 +00:00
- 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