From f3b7aa2a9add077ec033b598eed6ae27a34f28c0 Mon Sep 17 00:00:00 2001 From: Max Mehl Date: Wed, 18 Sep 2024 11:12:04 +0200 Subject: [PATCH] avoid use of separate upload-pages-artifact step --- .github/workflows/hugo.yaml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index a531949..d980a7d 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -44,7 +44,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: public + name: github-pages path: ./public include-hidden-files: true retention-days: 1 @@ -57,7 +57,7 @@ jobs: - name: Download artifact uses: actions/download-artifact@v4 with: - name: public + name: github-pages path: . - name: Link Checker @@ -79,17 +79,6 @@ jobs: # Only deploy if on main branch if: github.ref == 'refs/heads/main' steps: - - name: Download artifact - uses: actions/download-artifact@v4 - with: - name: public - path: ./public - - - name: Upload pages artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./public - - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4