Merge branch 'main' of https://github.com/IlmenauerSchachverein/Verei… #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |