This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
kekskurse.de-old2/.forgejo/workflows/deplo.yml

38 lines
956 B
YAML
Raw Normal View History

2023-07-19 12:46:35 +00:00
name: GitHub Pages
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
jobs:
deploy:
runs-on: docker
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
2023-07-19 12:59:15 +00:00
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2023-07-19 12:46:35 +00:00
- name: Setup Hugo
2023-07-19 12:47:01 +00:00
uses: https://github.com/peaceiris/actions-hugo@v2
2023-07-19 12:46:35 +00:00
with:
hugo-version: '0.112.0'
# extended: true
- name: Build
2023-07-19 12:49:18 +00:00
run: hugo --minify
- name: copy file via ssh password
2023-07-19 12:49:45 +00:00
uses: https://github.com/appleboy/scp-action@v0.1.4
2023-07-19 12:49:18 +00:00
with:
2023-07-21 17:35:05 +00:00
host: "static.keks.cloud"
2023-07-19 12:49:18 +00:00
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
2023-07-19 12:59:15 +00:00
source: "public/*"
2023-07-19 12:56:01 +00:00
target: "/var/www/kekskurse.de/"
2023-07-21 17:35:05 +00:00
strip_components: 1