-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bece94
commit 80a1a93
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,16 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v2 | ||
uses: actions/setup-dotnet@v4.0.1 | ||
with: | ||
dotnet-version: '8.x' | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build for Windows x64 | ||
run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r win-x64 --self-contained -p:PublishAot=true | ||
|
||
- name: Create version number | ||
shell: pwsh | ||
run: | | ||
|
@@ -32,9 +35,6 @@ jobs: | |
$VERSION = "$VERSION.$env:GITHUB_RUN_NUMBER" | ||
echo "VERSION=$VERSION" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
- name: Build for Windows x64 | ||
run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r win-x64 --self-contained -p:PublishAot=true | ||
|
||
- name: Pack NuGet packages | ||
run: dotnet pack ${{ env.PROJECT_NAME }} -c Release /p:PackageVersion=${{ env.VERSION }} | ||
|
||
|
@@ -56,23 +56,23 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v2 | ||
uses: actions/setup-dotnet@v4.0.1 | ||
with: | ||
dotnet-version: '8.x' | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build for Linux x64 | ||
run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r linux-x64 --self-contained -p:PublishAot=true | ||
|
||
- name: Create version number | ||
id: vars | ||
run: | | ||
TAG=$(echo $GITHUB_REF | sed 's/refs\/tags\///') | ||
VERSION=${TAG#v} | ||
echo "VERSION=${VERSION}.${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV | ||
- name: Build for Linux x64 | ||
run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r linux-x64 --self-contained -p:PublishAot=true | ||
|
||
- name: Pack NuGet packages | ||
run: dotnet pack ${{ env.PROJECT_NAME }} -c Release /p:PackageVersion=${{ env.VERSION }} | ||
|
||
|