Skip to content

Commit

Permalink
Create deploy-production.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaes3kuch3n authored Jul 9, 2020
1 parent fdf137d commit 76f23cd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: production deployment

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Hugo setup
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.72.0'

- name: Build
run: hugo --minify -e production

- name: Deploy
uses: appleboy/scp-action@v0.1.1
with:
host: ${{ secrets.SCP_HOST }}
username: ${{ secrets.SCP_USERNAME }}
key: ${{ secrets.SCP_KEY }}
passphrase: ${{ secrets.SCP_PASSPHRASE }}
source: public/
target: /var/www/html/
rm: true

0 comments on commit 76f23cd

Please sign in to comment.