Skip to content

Commit cacccc9

Browse files
committed
build on windows cos I don't want to package esbuild for linux as well
1 parent e22e80e commit cacccc9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/v2.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
token: ${{ secrets.GITHUB_TOKEN }}
4141

4242
build-web:
43-
runs-on: ubuntu-latest
43+
runs-on: windows-latest
4444
strategy:
4545
matrix:
4646
dotnet-version: ['8.0.x' ]
@@ -55,10 +55,9 @@ jobs:
5555
run: dotnet restore bprintweb -r linux-arm64
5656
- name: Build
5757
run: |
58-
ref_name="${{ github.ref_name }}"
59-
appversion="${ref_name:1}"
60-
echo "$appversion"
61-
dotnet publish --configuration Release --no-restore /p:Version="$appversion" -r linux-arm64 --self-contained bprintweb
58+
$appversion = "${{ github.ref_name }}".substring(1)
59+
echo $appversion
60+
dotnet publish --configuration Release --no-restore /p:Version="$appversion" -r linux-arm64 --self-contained bprintweb
6261
- name: Zip Release
6362
uses: TheDoctor0/zip-release@0.6.0
6463
with:

0 commit comments

Comments
 (0)