-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.24 KB
/
buildrelease.yml
File metadata and controls
37 lines (34 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: dotnet package
on:
push:
branches:
- "main"
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x"
include-prerelease: true
- name: Install dependencies
run: dotnet restore .\FuzeCleaner\FuzeCleaner.sln
- name: Build
run: dotnet publish -p:PublishReadyToRun=true -p:PublishSingleFile=true --no-self-contained -r win-x64 -c Release .\FuzeCleaner\FuzeCleaner.sln
- name: Test
run: dotnet test --no-restore --verbosity normal .\FuzeCleaner\FuzeCleaner.sln
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: FuzeCleaner-Release
path: FuzeCleaner\bin\Release\net7.0-windows\win-x64\publish
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.RELEASE_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "最新编译版本-Github Actions云构建"
files: |
FuzeCleaner/bin/Release/net7.0-windows/win-x64/publish/FuzeCleaner.exe