action on windows

This commit is contained in:
智能大石头 2023-03-15 00:03:32 +08:00
parent fbfbe576d2
commit 7b22eb0f92
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ on:
jobs:
build-publish:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
@ -19,7 +19,7 @@ jobs:
with:
dotnet-version: 7.0.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Build
run: |
dotnet build -c Release --version-suffix ${{ env.VERSION }}

View File

@ -7,7 +7,7 @@ on:
jobs:
build-publish:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v3