diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e9180fa..d1020b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,11 +29,11 @@ jobs: - name: Build site run: make build - # - name: Save website artifact - # uses: actions/upload-artifact@v4 - # with: - # name: website-${{ github.ref_name }} - # path: public/ + - name: Save website artifact + uses: actions/upload-artifact@v4 + with: + name: website-${{ github.ref_name }} + path: public/ deploy: runs-on: ubuntu-latest @@ -41,11 +41,11 @@ jobs: permissions: id-token: write steps: - # - name: Download website artifact - # uses: actions/download-artifact@v4 - # with: - # name: ${{ inputs.artifact-name }} - # path: public + - name: Download website artifact + uses: actions/download-artifact@v4 + with: + name: website-${{ github.ref_name }} + path: public - name: Download tools run: curl -LO https://github.com/mayo/oyam.ca-tools/releases/download/v0.0.1/deploy_aws_s3-x86_64-linux.zip @@ -64,10 +64,21 @@ jobs: #run: aws s3 sync --acl public-read --delete public/ s3://${{ env.S3_BUCKET }}/ run: ./sync_s3 --bucket ${{ env.S3_BUCKET }} public/ -v -a public-read -d | tee upload.log + - name: Save sync artifact + uses: actions/upload-artifact@v4 + with: + name: sync-${{ github.ref_name }} + path: upload.log + purge-cache: runs-on: ubuntu-latest needs: deploy steps: + - name: Download sync artifact + uses: actions/download-artifact@v4 + with: + name: sync-${{ github.ref_name }} + - name: Do stuff run: cat upload.log