generated from eskopp/TurnierWebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.35 KB
/
ilmenauersv.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Deploy German
on:
push:
branches: ["main"]
schedule:
- cron: "0 0 1 * *"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Set current date
run: echo "DATETIME=$(date +'%Y_%m_%d_%H_%M')" >> $GITHUB_ENV
- 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 mod get
hugo
- name: Deploy files via SSH
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.SSH_SERVER }}
username: ${{ secrets.SSH_USERNAME }}
source: "public/*"
target: "/var/www/isst25"
rm: true
password: ${{ secrets.SSH_PASSWORD }}
- name: Create folder structure
uses: appleboy/ssh-action@v1.1.0
with:
host: ${{ secrets.SSH_SERVER }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
script: cd /var/www/isst25; mv public/* .; rm -rf public