mirror of
https://github.com/danbee/danbarber.me.hugo.git
synced 2025-03-04 08:59:18 +00:00
31 lines
618 B
YAML
31 lines
618 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
|
|
|
|
- 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 }}
|