update README.zh.md #39
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
name: publish demo | |
on: | |
push: | |
branches: [ "master","develop" ] | |
tags: | |
- "v*.*.*" | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Make upload directory | |
run: mkdir upload | |
- name: Publish win-x64 | |
run: dotnet publish ./src/VirtualStreetSnap -c Release | |
- name: Zip win-x64 | |
run: | | |
$files = Get-ChildItem -Path ./src/VirtualStreetSnap/bin/Release/net8.0/win-x64/publish/* -Recurse -Exclude *.pdb | |
Compress-Archive -Path $files.FullName -DestinationPath ./upload/VirtualStreetSnap.win-x64.zip | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
with: | |
name: VirtualStreetSnap | |
path: ./upload/VirtualStreetSnap.win-x64.zip |