diff --git a/.github/workflows/Jafner.dev_hugo.yaml b/.github/workflows/Jafner.dev_hugo.yaml index 244b80a1..09b8aa6a 100644 --- a/.github/workflows/Jafner.dev_hugo.yaml +++ b/.github/workflows/Jafner.dev_hugo.yaml @@ -57,10 +57,15 @@ jobs: --gc \ --minify \ --baseURL "https://jafner.dev/" - - name: Upload artifact + - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v3 with: path: 'sites/Jafner.dev/public' + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: jafner-dev-generated + path: 'sites/Jafner.dev/public' deploy-github-pages: environment: @@ -80,6 +85,10 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: jafner-dev-generated - name: Authenticate AWS CLI uses: aws-actions/configure-aws-credentials@v1 with: @@ -88,4 +97,4 @@ jobs: aws-region: us-west-2 - name: Push generated files to jafner-dev bucket run: | - aws s3 sync sites/Jafner.dev/public s3://jafner-dev --delete \ No newline at end of file + aws s3 sync sites/Jafner.dev/public s3://jafner-dev --delete