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-16 13:11:18 -06:00

33 lines
657 B
YAML

name: Deploy
on:
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
workflow_dispatch:
env:
DOKKU_HOST: 'dokku.danbee.in'
DOKKU_APP_NAME: 'me'
DOKKU_REMOTE_BRANCH: 'main'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Deploy
uses: woudsma/dokku-deploy-github-action@v1
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
dokku-host: ${{ env.DOKKU_HOST }}
app-name: ${{ env.DOKKU_APP_NAME }}
app-remote-branch: ${{ env.DOKKU_REMOTE_BRANCH }}