Skip to content

Commit

Permalink
Fixed publish workflow and added win-x86 rid (#53)
Browse files Browse the repository at this point in the history
* Fixed publish workflow and added win-x86 rid

* For workflow debug

* Fixed version error for debugging

* Revert "Fixed version error for debugging"

This reverts commit 5873f23.

* Revert "For workflow debug"

This reverts commit 4d775e8.
  • Loading branch information
shibayan authored Jun 6, 2021
1 parent 6a69604 commit 839ebf2
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:
jobs:
build_client:
runs-on: windows-latest
strategy:
matrix:
rid: [ win-x64, win-x86 ]
steps:
- uses: actions/checkout@v2

Expand All @@ -23,19 +26,16 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
shell: bash

- name: Restore NuGet packages
run: dotnet restore

- name: Publish client application
run: dotnet publish -c Release -r win-x86 -o ./client -p:Version=${{ steps.setup_version.outputs.VERSION }} -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true src\ImoutoDesktop
run: dotnet publish -c Release -r ${{ matrix.rid }} -o ./client -p:Version=${{ steps.setup_version.outputs.VERSION }} -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true src/ImoutoDesktop

- name: Copy client resource
run: xcopy .\resource .\client /I /Y /E /H

- name: Upload client application
uses: actions/upload-artifact@v2
with:
name: client
name: client-${{ matrix.rid }}
path: |
client/
!client/*.pdb
Expand All @@ -49,6 +49,8 @@ jobs:
rid: linux-x64
- os: windows-latest
rid: win-x64
- os: windows-latest
rid: win-x86
steps:
- uses: actions/checkout@v2

Expand All @@ -62,11 +64,8 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
shell: bash

- name: Restore NuGet packages
run: dotnet restore

- name: Publish server application
run: dotnet publish -c Release -r ${{ matrix.rid }} -o ./server -p:Version=${{ steps.setup_version.outputs.VERSION }} -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true src\ImoutoDesktop.Server
run: dotnet publish -c Release -r ${{ matrix.rid }} -o ./server -p:Version=${{ steps.setup_version.outputs.VERSION }} -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true src/ImoutoDesktop.Server

- name: Upload server application
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 839ebf2

Please sign in to comment.