-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add self-contained and non-self contained
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 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,7 +17,7 @@ jobs: | |
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet publish -c Release -o build -r win-x64 --no-restore | ||
run: dotnet publish -c Release -o build -r win-x64 --no-restore --no-self-contained | ||
- name: Zip build directory | ||
uses: montudor/[email protected] | ||
with: | ||
|
@@ -27,4 +27,28 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: 'WhereIsForward.zip' | ||
args: 'WhereIsForward.zip' | ||
|
||
build-release-self-contained: | ||
name: Build and Release (Self-Contained) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.402 | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet publish -c Release -o build -r win-x64 --no-restore --self-contained | ||
- name: Zip build directory | ||
uses: montudor/[email protected] | ||
with: | ||
args: sh -c "cd build && zip -qq -r ../WhereIsForward.SelfContained.zip *" | ||
- name: Upload binaries | ||
uses: skx/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: 'WhereIsForward.SelfContained.zip' |
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
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