Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CatmanFan committed Dec 28, 2024
1 parent 62e0108 commit 55a32c2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,21 @@ jobs:
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Navigate to Workspace
- name: Go to GitHub Workspace
run: cd $GITHUB_WORKSPACE

- name: Create Build Directory
- name: Create build directory
run: mkdir _build

- name: Restore dependencies
run: nuget restore FriishProduce.sln

- name: Build release
run: MSBuild FriishProduce.sln /p:Configuration=Release /p:Platform="Any CPU" /t:build /restore /p:DeleteExistingFiles=False /p:PublishUrl="../_build"
run: MSBuild FriishProduce.sln /p:Configuration=Release /p:Platform="Any CPU" /t:build /restore /p:DeleteExistingFiles=False /p:PublishUrl="_build"

- name: Create archive
run: Compress-Archive -Path _build/* -Destination out.zip

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"

0 comments on commit 55a32c2

Please sign in to comment.