1
0
mirror of https://github.com/danbee/danbarber.me.hugo.git synced 2025-03-04 08:59:18 +00:00
danbarber.me.hugo/.github/workflows/main.yml
2021-12-17 17:05:12 -06:00

29 lines
539 B
YAML

name: Deploy
on:
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment: Dokku Deploy
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
git_push_flags: --force
git_remote_url: 'ssh://dokku@dokku.danbee.in:22/me'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}