.forgejo/workflows/build.yaml aktualisiert
This commit is contained in:
parent
07ca7f15a7
commit
461d06b5c7
1 changed files with 5 additions and 1 deletions
|
@ -23,10 +23,12 @@ jobs:
|
||||||
HUGO_ENVIRONMENT: production
|
HUGO_ENVIRONMENT: production
|
||||||
HUGO_ENV: production
|
HUGO_ENV: production
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
- name: Zip output
|
||||||
|
run: zip -r public.zip public/
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hugo-output
|
name: hugo-output
|
||||||
path: ./public
|
path: ./public.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
push:
|
push:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
@ -34,9 +36,11 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: pages
|
ref: pages
|
||||||
|
- run: rm -rf *
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hugo-output
|
name: hugo-output
|
||||||
|
- run: unzip public.zip -d .
|
||||||
- run: ls -l
|
- run: ls -l
|
||||||
- run: |
|
- run: |
|
||||||
git config user.name "forgejo-actions"
|
git config user.name "forgejo-actions"
|
||||||
|
|
Loading…
Reference in a new issue