CHANGE pipline to support ghes
This commit is contained in:
parent
d440267fac
commit
58deb7414b
1 changed files with 4 additions and 3 deletions
|
@ -24,13 +24,14 @@ jobs:
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
- 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
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -38,7 +39,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
|
||||||
|
@ -49,4 +50,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
|
||||||
|
|
Loading…
Reference in a new issue