From 0392154c05c3f121c64f06fc149978a2f3e26ca0 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Tue, 13 Jun 2023 19:16:53 +0200 Subject: [PATCH] ci test --- .gitea/workflows/hugo.yaml | 50 ++++++++++---------------------------- 1 file changed, 13 insertions(+), 37 deletions(-) diff --git a/.gitea/workflows/hugo.yaml b/.gitea/workflows/hugo.yaml index c783990..0536c09 100644 --- a/.gitea/workflows/hugo.yaml +++ b/.gitea/workflows/hugo.yaml @@ -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