mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-08 08:06:18 +00:00
Merge pull request #78 from konradpabjan/main
Upload pages artifact with upload-artifact v4-beta
This commit is contained in:
5
.github/workflows/test-hosted-runners.yml
vendored
5
.github/workflows/test-hosted-runners.yml
vendored
@@ -31,12 +31,13 @@ jobs:
|
||||
- name: Upload Pages artifact
|
||||
uses: ./
|
||||
with:
|
||||
name: pages-artifact-${{ matrix.os }}
|
||||
path: artifact
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
uses: actions/download-artifact@v4-beta
|
||||
with:
|
||||
name: github-pages
|
||||
name: pages-artifact-${{ matrix.os }}
|
||||
path: artifact2
|
||||
|
||||
- name: Extract artifact
|
||||
|
||||
@@ -14,6 +14,10 @@ inputs:
|
||||
description: "Duration after which artifact will expire in days."
|
||||
required: false
|
||||
default: "1"
|
||||
outputs:
|
||||
artifact_id:
|
||||
description: "The ID of the artifact that was uploaded."
|
||||
value: ${{ steps.upload-artifact.outputs.artifact-id }}
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@@ -63,7 +67,8 @@ runs:
|
||||
INPUT_PATH: ${{ inputs.path }}
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
id: upload-artifact
|
||||
uses: actions/upload-artifact@v4-beta
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ runner.temp }}/artifact.tar
|
||||
|
||||
Reference in New Issue
Block a user