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/