Skip to content

Commit

Permalink
Update _build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianEdwards committed May 24, 2024
1 parent 068232b commit da1a810
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
global-json-file: "./global.json"

- name: Restore dependencies
Expand All @@ -38,14 +37,14 @@ jobs:
- name: Test
run: dotnet test --configuration Release --no-restore --no-build

- name: Publish samples
run: |
for projectPath in ./samples/**/*.csproj ; do
projectFileName=${projectPath##*/}
projectName=${projectFileName%.*}
dotnet publish "$projectPath" --output "./artifacts/$projectName" --configuration Release --no-build --verbosity normal
done;
./artifacts/Samples.Console/Samples.Console "MiniValidation"
# - name: Publish samples
# run: |
# for projectPath in ./samples/**/*.csproj ; do
# projectFileName=${projectPath##*/}
# projectName=${projectFileName%.*}
# dotnet publish "$projectPath" --output "./artifacts/$projectName" --configuration Release --no-build --verbosity normal
# done;
# ./artifacts/Samples.Console/Samples.Console "MiniValidation"

- name: Pack (ci)
run: dotnet pack --configuration Release --output ./artifacts/ci --verbosity normal -p:BuildNumber=$BUILD_NUMBER -p:SourceRevisionId=$GITHUB_SHA -p:ContinuousIntegrationBuild=true
Expand Down

0 comments on commit da1a810

Please sign in to comment.