upload & download site content
This commit is contained in:
parent
6ed35f6762
commit
a15f7576da
@ -13,11 +13,13 @@ jobs:
|
|||||||
- name: Checkout repository resources
|
- name: Checkout repository resources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Build website content
|
- name: Build website content
|
||||||
run: hugo && pwd && ls -Rl
|
run: hugo
|
||||||
|
- name: Upload artifacts for next job to use
|
||||||
|
uses: actions/upload-artifacts@v4
|
||||||
with:
|
with:
|
||||||
name: site-content
|
name: site_content
|
||||||
path: public/
|
path: public/
|
||||||
|
retention-days: 3
|
||||||
|
|
||||||
push-content:
|
push-content:
|
||||||
needs: setup-website-content
|
needs: setup-website-content
|
||||||
@ -25,8 +27,9 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: shockrah/hugo
|
image: shockrah/hugo
|
||||||
steps:
|
steps:
|
||||||
- name: Check file content is present
|
- name: Download site content for upload
|
||||||
|
uses: actions/download-artifacts@v4
|
||||||
with:
|
with:
|
||||||
name: site-content
|
name: site_content
|
||||||
path: public/
|
- name: Check file content is present
|
||||||
run: pwd && ls -lRt public/
|
run: pwd && ls -lRt public/
|
||||||
|
Loading…
Reference in New Issue
Block a user