Skip to content

adjust how packages are uploaded as artifacts #34

adjust how packages are uploaded as artifacts

adjust how packages are uploaded as artifacts #34

Workflow file for this run

name: pull-request-gate
on:
pull_request:
branches: [ '*' ]
env:
BUILD_VERSION: 0.2.${{github.run_number}}
SLN_PATH: src/ShellRunner.sln
TEST_PATH: src/TestApp/bin/Release/net8.0/TestApp.dll
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore $SLN_PATH
- name: Build
run: dotnet build $SLN_PATH
-c Release
--no-restore
-p:Version=$BUILD_VERSION
- name: Upload ShellRunner Build Artifacts
uses: actions/upload-artifact@v4.6.1
with:
name: BuildArtifacts
path: ./**/bin/Release/**/*
build-test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4.1.9
with:
name: BuildArtifacts
- name: Test
run: dotnet $TEST_PATH bash