CHANGE pipeline to support ghes
All checks were successful
build-to-pages / build (push) Successful in 39s
build-to-pages / push (push) Successful in 15s

This commit is contained in:
Hoernschen 2024-12-28 20:14:39 +01:00
parent 362af617f8
commit f82fd2ef14
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462

View file

@ -30,13 +30,14 @@ jobs:
./themes/kobel/assets/build/images.sh ./themes/kobel/assets/build/images.sh
- name: Zip output - name: Zip output
run: apt update && apt install zip -y && zip -r public.zip public/ 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: with:
name: hugo-output name: hugo-output
path: ./public.zip path: ./public.zip
if-no-files-found: error if-no-files-found: error
retention-days: 1 retention-days: 1
push: push:
needs: [build]
runs-on: docker runs-on: docker
container: container:
image: node:latest image: node:latest
@ -46,7 +47,7 @@ jobs:
ref: public ref: public
- name: Clean current files in directory - name: Clean current files in directory
run: rm -rf * run: rm -rf *
- uses: actions/download-artifact@v3 - uses: https://code.forgejo.org/forgejo/download-artifact@v4 # actions/download-artifact@v3
with: with:
name: hugo-output name: hugo-output
- name: Unzip hugo output - name: Unzip hugo output
@ -58,4 +59,4 @@ jobs:
git config user.email "" git config user.email ""
git add . git add .
git commit -m "generated" git commit -m "generated"
git push git push