This repository has been archived on 2025-05-12. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
hack13-blog/.github/workflows/main.yml
2023-03-12 16:18:55 -04:00

23 lines
No EOL
701 B
YAML

on: push
name: Build and deploy
jobs:
web-deploy:
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v2
- name: Build hugo site
uses: jakejarvis/hugo-build-action@master
with:
args: --minify
- name: Clean permissions
uses: main-quest/actions.clean-permissions@v1.0.4
- name: Upload files
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
username: ${{ secrets.SFTP_USERNAME }}
server: ${{ secrets.SFTP_SERVER }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
local_path: './public/*'
remote_path: ${{ secrets.SFTP_REMOTE_PATH }}
sftpArgs: '-o ConnectTimeout=5'