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

Commit

Permalink
different artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
sambaas committed Sep 12, 2023
1 parent 0d7bb3a commit 4a813c6
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/build-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,31 @@ jobs:

- name: Build Release
run: |
dotnet build TileBakeTool/TileBakeTool.csproj --no-restore --verbosity normal --configuration Release --output ./publish
if [ "$RUNNER_OS" == "Windows" ]; then
dotnet build YourProject/YourProject.csproj --configuration --verbosity normal Release --output ./windows-publish
elif [ "$RUNNER_OS" == "Linux" ]; then
dotnet build YourProject/YourProject.csproj --configuration --verbosity normal Release --output ./linux-publish
else
dotnet build YourProject/YourProject.csproj --configuration --verbosity normal Release --output ./macos-publish
fi
- name: Publish Build Artifacts
- name: Publish Windows Artifacts
if: runner.os == 'Windows'
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: ./publish
name: windows-artifacts
path: ./windows-publish

- name: Publish Linux Artifacts
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: linux-artifacts
path: ./linux-publish

- name: Publish macOS Artifacts
if: runner.os == 'macOS'
uses: actions/upload-artifact@v2
with:
name: macos-artifacts
path: ./macos-publish

0 comments on commit 4a813c6

Please sign in to comment.