From 58deb7414b501aad727a0fd72b22b15586177d73 Mon Sep 17 00:00:00 2001 From: Hoernschen Date: Sat, 28 Dec 2024 20:16:10 +0100 Subject: [PATCH] CHANGE pipline to support ghes --- .forgejo/workflows/build.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index c50cd6f..3aeb7f6 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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 @@ -49,4 +50,4 @@ jobs: git config user.email "" git add . git commit -m "generated" - git push \ No newline at end of file + git push