Skip to content

Merge branch 'master' of https://github.com/wzyyyyyyy/JLUiCourse #58

Merge branch 'master' of https://github.com/wzyyyyyyy/JLUiCourse

Merge branch 'master' of https://github.com/wzyyyyyyy/JLUiCourse #58

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release
- name: Publish
run: dotnet publish --configuration Release --output ./publish
- name: Zip artifact
run: |
mkdir zip
$zipFilename = "build-artifact.zip"
Compress-Archive -Path ./publish -DestinationPath "./zip/$zipFilename" -Force
shell: powershell
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: build-artifact
path: ./zip/build-artifact.zip