ci test
All checks were successful
/ deploy (push) Successful in 24s

This commit is contained in:
Mans Ziesel 2023-06-13 19:16:53 +02:00
parent 2cbe439d70
commit 0392154c05

View File

@ -1,47 +1,23 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Default to bash
defaults:
run:
shell: bash
branches:
- main # Set a branch to deploy
pull_request:
jobs:
# Build job
build:
deploy:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.108.0
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: hugo
uses: https://github.com/klakegg/actions-hugo@1.0.0
- name: Upload artifact
uses: https://github.com/actions/upload-artifact@v3
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v2
with:
path: ./public
hugo-version: '0.111.3'
# extended: true
# # Deployment job
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
- name: Build
run: hugo --minify