Skip to content

Commit 982d83e

Browse files
authored
Update upload-artifact to v4 (#25)
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)
1 parent b6559c3 commit 982d83e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,28 +151,28 @@ runs:
151151
if: >-
152152
env.NTD2D_PUSH_PAGES == 'true'
153153
&& (success() || steps.build-html.conclusion == 'success')
154-
- uses: actions/upload-artifact@v3
154+
- uses: actions/upload-artifact@v4
155155
name: Upload Documentation Artifacts
156156
with:
157-
name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}
157+
name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}-html
158158
path: |
159159
${{ steps.ntd2d.outputs.borged-build-folder }}/html
160160
# Use always() to always run this step to publish documentation
161161
# artifacts even when there are failures
162162
if: ${{ always() }}
163-
- uses: actions/upload-artifact@v3
163+
- uses: actions/upload-artifact@v4
164164
name: Upload Documentation Artifacts
165165
with:
166-
name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}
166+
name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}-epub
167167
path: |
168168
${{ steps.ntd2d.outputs.borged-build-folder }}/epub/*.epub
169169
# Use always() to always run this step to publish documentation
170170
# artifacts even when there are failures
171171
if: ${{ contains(inputs.formats, 'epub') && always() }}
172-
- uses: actions/upload-artifact@v3
172+
- uses: actions/upload-artifact@v4
173173
name: Upload Documentation Artifacts
174174
with:
175-
name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}
175+
name: ${{ github.event.repository.name }}-${{ env.NTD2D_SANITIZED_REF_NAME }}-${{ github.sha }}-latex
176176
path: |
177177
${{ steps.ntd2d.outputs.borged-build-folder }}/latex/${{ github.event.repository.name }}.pdf
178178
${{ steps.ntd2d.outputs.borged-build-folder }}/latex/${{ github.event.repository.name }}.log

0 commit comments

Comments
 (0)