Files
knaeckeboot-eu/.gitea/workflows/deploy.yaml
T
kossa e2926b1c10
Deploy Hugo Site / Deploy Batch Tools on beta.batch.tools (push) Successful in 6m47s
chore: bump action versions
2026-01-08 18:25:36 +01:00

37 lines
1.0 KiB
YAML

name: Deploy Hugo Site
run-name: ${{ gitea.actor }} is deploying
on:
push:
branches:
- master
jobs:
Deploy Batch Tools on beta.batch.tools:
runs-on: node-18
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Tailwind and build
run: |
npm install
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build Page
run: |
hugo --minify
- name: Create SSH keys
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.KNOWN_HOSTS }}" > ~/.ssh/known_hosts
chmod 600 ~/.ssh/id_rsa
- name: Install rsync
run: |
apt-get update
apt-get install rsync -y
- name: Move Files
run: |
rsync -r --delete ./public/ kossa@docker.kollar.cloud:/opt/docker/volumes/knaeckeboot.eu/public/