keks.cloud/.forgejo/workflows/deploy.yml

38 lines
955 B
YAML

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: false # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2
with:
hugo-version: '0.112.0'
# extended: true
- name: Build
run: hugo --minify
- name: copy file via ssh password
uses: https://github.com/appleboy/scp-action@v0.1.4
with:
host: "static.keks.cloud"
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
source: "public/*"
target: "/var/www/keks.cloud/"
strip_components: 1