39 lines
No EOL
997 B
YAML
39 lines
No EOL
997 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: true # Fetch Hugo themes (true OR recursive)
|
|
fetch-depth: 1 # 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: Test
|
|
run: ls -lah
|
|
|
|
- name: copy file via ssh password
|
|
uses: https://github.com/appleboy/scp-action@v0.1.4
|
|
with:
|
|
host: ${{ secrets.HOST }}
|
|
username: ${{ secrets.USERNAME }}
|
|
key: ${{ secrets.KEY }}
|
|
source: "*"
|
|
target: "/var/www/kekskurse.de/"
|
|
working-directory: "public/" |