.forgejo/workflows/build.yaml aktualisiert
This commit is contained in:
parent
e0299257dc
commit
925e37dded
1 changed files with 17 additions and 2 deletions
|
@ -4,13 +4,28 @@ branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
image: klakegg/hugo
|
container:
|
||||||
|
image: klakegg/hugo
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
- run: hugo --minify
|
- run: hugo --minify
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: hugo-output
|
||||||
|
path: ./public
|
||||||
|
if-no-files-found: error
|
||||||
push:
|
push:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: pages
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: hugo-output
|
||||||
|
- run: ls -l
|
||||||
- run: |
|
- run: |
|
||||||
git config user.name "forgejo-actions"
|
git config user.name "forgejo-actions"
|
||||||
git config user.email ""
|
git config user.email ""
|
||||||
|
|
Loading…
Reference in a new issue