Skip to content

Merge branch 'main' of https://github.com/IlmenauerSchachverein/Verei… #26

Merge branch 'main' of https://github.com/IlmenauerSchachverein/Verei…

Merge branch 'main' of https://github.com/IlmenauerSchachverein/Verei… #26

Workflow file for this run

name: Deploy SSH
on:
push:
branches:
- main
schedule:
- cron: "0 0 1 * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install Hugo Extended
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "latest"
extended: true
- name: Build Hugo site
run: |
hugo
find . -mindepth 1 -not -name 'public' -not -path './public/*' -delete
mv public/* .
rm -rf public
- name: Deploy files via SSH
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_SERVER }}
username: ${{ secrets.SSH_USERNAME }}
source: "."
target: "/var/www/isv_vm24"
rm: true
password: ${{ secrets.SSH_PASSWORD }}