From a15f7576da737457a5385c014bd6f371a26efad1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 3 Sep 2024 16:12:56 -0700 Subject: [PATCH] upload & download site content --- .gitea/workflows/build-and-deploy.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index f65b1f6..2108857 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -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/