* Add block log hoyo #59
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: YuukiPS | |
on: | |
push: | |
paths: | |
- 'YuukiPS Launcher.csproj' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 7.0.x | |
- name: Publish App | |
run: dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained true -c Release | |
- name: Check Version | |
uses: kzrnm/get-net-sdk-project-versions-action@v1 | |
id: get-version | |
with: | |
proj-path: "YuukiPS Launcher.csproj" | |
- name: Get Version | |
run: | | |
echo "Version=${{steps.get-version.outputs.assembly-version}}" | |
- name: Get Zip Release | |
uses: thedoctor0/zip-release@main | |
with: | |
path: './bin/Release/net7.0-windows/win-x64/publish/*' | |
type: 'zip' | |
filename: 'YuukiPS.zip' | |
exclusions: '*.git*' | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{steps.get-version.outputs.assembly-version}} | |
release_name: Nightly ${{steps.get-version.outputs.assembly-version}} | |
draft: false | |
body: | | |
${{ github.event.head_commit.message }} | |
prerelease: 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: ./YuukiPS.zip | |
asset_name: YuukiPS.zip | |
asset_content_type: application/zip |