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: on:
# Runs on pushes targeting the default branch
push: push:
branches: ["main"] branches:
- main # Set a branch to deploy
# Allows you to run this workflow manually from the Actions tab pull_request:
workflow_dispatch:
# Default to bash
defaults:
run:
shell: bash
jobs: jobs:
# Build job deploy:
build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.108.0
steps: steps:
- name: Checkout - uses: actions/checkout@v3
uses: actions/checkout@v3
with: with:
fetch-depth: 0 submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: hugo - name: Setup Hugo
uses: https://github.com/klakegg/actions-hugo@1.0.0 uses: https://github.com/peaceiris/actions-hugo@v2
- name: Upload artifact
uses: https://github.com/actions/upload-artifact@v3
with: with:
path: ./public hugo-version: '0.111.3'
# extended: true
# # Deployment job - name: Build
# deploy: run: hugo --minify
# 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