Skip to content

Commit 0313a19

Browse files
authored
Merge pull request #78 from konradpabjan/main
Upload pages artifact with upload-artifact v4-beta
2 parents a753861 + 1228e65 commit 0313a19

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/test-hosted-runners.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ jobs:
3131
- name: Upload Pages artifact
3232
uses: ./
3333
with:
34+
name: pages-artifact-${{ matrix.os }}
3435
path: artifact
3536

3637
- name: Download artifact
37-
uses: actions/download-artifact@v3
38+
uses: actions/download-artifact@v4-beta
3839
with:
39-
name: github-pages
40+
name: pages-artifact-${{ matrix.os }}
4041
path: artifact2
4142

4243
- name: Extract artifact

action.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ inputs:
1414
description: "Duration after which artifact will expire in days."
1515
required: false
1616
default: "1"
17+
outputs:
18+
artifact_id:
19+
description: "The ID of the artifact that was uploaded."
20+
value: ${{ steps.upload-artifact.outputs.artifact-id }}
1721
runs:
1822
using: composite
1923
steps:
@@ -63,7 +67,8 @@ runs:
6367
INPUT_PATH: ${{ inputs.path }}
6468

6569
- name: Upload artifact
66-
uses: actions/upload-artifact@v3
70+
id: upload-artifact
71+
uses: actions/upload-artifact@v4-beta
6772
with:
6873
name: ${{ inputs.name }}
6974
path: ${{ runner.temp }}/artifact.tar

0 commit comments

Comments
 (0)