2023-07-18 13:45:28 +02:00
|
|
|
name: Compile Hugo code to HTML and upload
|
2023-07-18 13:49:33 +02:00
|
|
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
2023-07-18 13:45:28 +02:00
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Explore-Gitea-Actions:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-07-18 14:48:36 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
|
|
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
|
|
|
|
|
|
- name: Setup Hugo
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
with:
|
|
|
|
hugo-version: '0.91.2'
|
|
|
|
# extended: true
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: hugo --minify
|
|
|
|
|
|
|
|
# - name: Deploy
|
|
|
|
# uses: peaceiris/actions-gh-pages@v3
|
|
|
|
# if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
# with:
|
|
|
|
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# publish_dir: ./public
|