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