CHANGE pipline to support ghes
Some checks failed
build-to-pages / build (push) Successful in 1m0s
build-to-pages / push (push) Failing after 10s

This commit is contained in:
Hoernschen 2024-12-28 20:16:10 +01:00
parent d440267fac
commit 58deb7414b
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462

View file

@ -24,13 +24,14 @@ jobs:
run: hugo --minify
- name: Zip output
run: apt update && apt install zip -y && zip -r public.zip public/
- uses: actions/upload-artifact@v3
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4 # actions/upload-artifact@v3
with:
name: hugo-output
path: ./public.zip
if-no-files-found: error
retention-days: 1
push:
needs: [build]
runs-on: docker
steps:
- uses: actions/checkout@v4
@ -38,7 +39,7 @@ jobs:
ref: public
- name: Clean current files in directory
run: rm -rf *
- uses: actions/download-artifact@v3
- uses: https://code.forgejo.org/forgejo/download-artifact@v4 # actions/download-artifact@v3
with:
name: hugo-output
- name: Unzip hugo output