Updating blog to auto-deploy and new post
This commit is contained in:
parent
faadb821d3
commit
0286443b89
2 changed files with 42 additions and 0 deletions
19
.github/workflows/main.yml
vendored
Normal file
19
.github/workflows/main.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
on: push
|
||||
name: Build and deploy
|
||||
jobs:
|
||||
web-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get latest code
|
||||
uses: actions/checkout@master
|
||||
- name: Build hugo site
|
||||
uses: jakejarvis/hugo-build-action@master
|
||||
with:
|
||||
args: --minify
|
||||
- name: Upload files
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.3.3
|
||||
with:
|
||||
server: ${{ secrets.ftp_server }}
|
||||
username: ${{ secrets.ftp_username }}
|
||||
password: ${{ secrets.ftp_password }}
|
||||
local-dir: ./public/
|
Reference in a new issue