-
-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move artifact publishing into a composite action
- Loading branch information
Showing
2 changed files
with
70 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Publish artifacts | ||
description: Publish artifacts | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: 📥 Collect artifacts | ||
run: azure-pipelines/artifacts/_stage_all.ps1 | ||
shell: pwsh | ||
if: always() | ||
|
||
# TODO: replace this hard-coded list with a loop that utilizes the NPM package at | ||
# https://github.com/actions/toolkit/tree/main/packages/artifact (or similar) to push the artifacts. | ||
|
||
- name: 📢 Upload project.assets.json files | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: projectAssetsJson-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/projectAssetsJson | ||
continue-on-error: true | ||
- name: 📢 Upload variables | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: variables-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/Variables | ||
continue-on-error: true | ||
- name: 📢 Upload build_logs | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build_logs-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/build_logs | ||
continue-on-error: true | ||
- name: 📢 Upload test_logs | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test_logs-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/test_logs | ||
continue-on-error: true | ||
- name: 📢 Upload testResults | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: testResults-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/testResults | ||
continue-on-error: true | ||
- name: 📢 Upload coverageResults | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverageResults-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/coverageResults | ||
continue-on-error: true | ||
- name: 📢 Upload symbols | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: symbols-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/symbols | ||
continue-on-error: true | ||
- name: 📢 Upload deployables | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: deployables-${{ runner.os }} | ||
path: ${{ runner.temp }}/_artifacts/deployables | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters