From 9a2025c51be427e42bc42aef99f251ea9d707d72 Mon Sep 17 00:00:00 2001 From: Jonathan Guyer Date: Tue, 7 Jan 2025 17:31:11 -0500 Subject: [PATCH] Update upload-artifact to v4 Can no longer have [multiple uploads to the same named artifact] (https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md#multiple-uploads-to-the-same-named-artifact) --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index f2c75ab..c492c33 100644 --- a/action.yml +++ b/action.yml @@ -151,28 +151,28 @@ runs: if: >- env.NTD2D_PUSH_PAGES == 'true' && (success() || steps.build-html.conclusion == 'success') - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload Documentation Artifacts with: - name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }} + name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}-html path: | ${{ steps.ntd2d.outputs.borged-build-folder }}/html # Use always() to always run this step to publish documentation # artifacts even when there are failures if: ${{ always() }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload Documentation Artifacts with: - name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }} + name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}-epub path: | ${{ steps.ntd2d.outputs.borged-build-folder }}/epub/*.epub # Use always() to always run this step to publish documentation # artifacts even when there are failures if: ${{ contains(inputs.formats, 'epub') && always() }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 name: Upload Documentation Artifacts with: - name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }} + name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}-latex path: | ${{ steps.ntd2d.outputs.borged-build-folder }}/latex/${{ github.event.repository.name }}.pdf ${{ steps.ntd2d.outputs.borged-build-folder }}/latex/${{ github.event.repository.name }}.log