Setup HUGO
Some checks failed
Push changes to production / deploy (push) Failing after 27s

This commit is contained in:
2025-12-18 17:44:21 -06:00
parent d021597938
commit d59390b7b1
4 changed files with 12 additions and 21 deletions

View File

@@ -13,14 +13,23 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIV_KEY }}" > ~/.ssh/act
chmod 600 ~/.ssh/act
- name: Build HUGO Site
run: |
apt update
apt install -y hugo
hugo --gc --minify
- name: Push to server
run: |
ssh -i ~/.ssh/act -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "rm -rf /srv/www/shadeouts.net/*"
scp -i ~/.ssh/act -o Port=${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no * ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/srv/www/shadeouts.net/
scp -i ~/.ssh/act -o Port=${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no public/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/srv/www/shadeouts.net/