|
| 1 | +name: Publish artifacts |
| 2 | +description: Publish artifacts |
| 3 | + |
| 4 | +runs: |
| 5 | + using: composite |
| 6 | + steps: |
| 7 | + - name: 📥 Collect artifacts |
| 8 | + run: tools/artifacts/_stage_all.ps1 |
| 9 | + shell: pwsh |
| 10 | + if: always() |
| 11 | + |
| 12 | +# TODO: replace this hard-coded list with a loop that utilizes the NPM package at |
| 13 | +# https://github.com/actions/toolkit/tree/main/packages/artifact (or similar) to push the artifacts. |
| 14 | + |
| 15 | + - name: 📢 Upload project.assets.json files |
| 16 | + if: always() |
| 17 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 18 | + with: |
| 19 | + name: projectAssetsJson-${{ runner.os }} |
| 20 | + path: ${{ runner.temp }}/_artifacts/projectAssetsJson |
| 21 | + continue-on-error: true |
| 22 | + - name: 📢 Upload variables |
| 23 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 24 | + with: |
| 25 | + name: variables-${{ runner.os }} |
| 26 | + path: ${{ runner.temp }}/_artifacts/Variables |
| 27 | + continue-on-error: true |
| 28 | + - name: 📢 Upload build_logs |
| 29 | + if: always() |
| 30 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 31 | + with: |
| 32 | + name: build_logs-${{ runner.os }} |
| 33 | + path: ${{ runner.temp }}/_artifacts/build_logs |
| 34 | + continue-on-error: true |
| 35 | + - name: 📢 Upload testResults |
| 36 | + if: always() |
| 37 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 38 | + with: |
| 39 | + name: testResults-${{ runner.os }} |
| 40 | + path: ${{ runner.temp }}/_artifacts/testResults |
| 41 | + continue-on-error: true |
| 42 | + - name: 📢 Upload coverageResults |
| 43 | + if: always() |
| 44 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 45 | + with: |
| 46 | + name: coverageResults-${{ runner.os }} |
| 47 | + path: ${{ runner.temp }}/_artifacts/coverageResults |
| 48 | + continue-on-error: true |
| 49 | + - name: 📢 Upload symbols |
| 50 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 51 | + with: |
| 52 | + name: symbols-${{ runner.os }} |
| 53 | + path: ${{ runner.temp }}/_artifacts/symbols |
| 54 | + continue-on-error: true |
| 55 | + - name: 📢 Upload deployables |
| 56 | + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 57 | + with: |
| 58 | + name: deployables-${{ runner.os }} |
| 59 | + path: ${{ runner.temp }}/_artifacts/deployables |
| 60 | + if: always() |
0 commit comments