This commit is contained in:
qwqdanchun 2023-07-18 11:15:01 +08:00
parent 5663a0e48d
commit 1620b757ea
11 changed files with 52 additions and 0 deletions

52
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,52 @@
name: Build RainbowSheep
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.0.2
- name: Install NuGet Packages
run: nuget restore RainbowSheep.sln
- name: Build solution
run: msbuild -nologo -v:m -p:Configuration=${{ matrix.configuration }} RainbowSheep.sln
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: AutoBuild
release_name: AutoBuild
body: ${{ steps.changelog.outputs.changelog }}
draft: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./RainbowSheep/bin/Release/RainbowSheep.exe
asset_name: RainbowSheep.exe
asset_content_type: application/octet-stream