Skip to content

1.1.4.0117-alpha.4

1.1.4.0117-alpha.4 #95

Workflow file for this run

# This workflow will build and publish a WinUI 3 unpackaged desktop application
# built on .NET.
name: WinUI 3 unpackaged app
# https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128
# 无需 Token 即可发布
permissions:
contents: write
on:
release:
types: [published]
push:
tags:
- "*" # Push events to matching *, i.e. 1.0, 20.15.10
jobs:
build:
strategy:
matrix:
configuration: [Release]
platform: [x64]
runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
env:
Solution_Name: src\\EasyTidy
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
# Restore the application to populate the obj folder with RuntimeIdentifiers
- name: Restore the application
run: |
msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
# Create the app by building and publishing the project
- name: Create the app
run: |
msbuild $env:Solution_Name /t:Publish /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:DebugType=None
env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
# Upload the app
- name: Upload app
run: |
.\publish.ps1
.\7z.ps1 ${{ github.ref_name }}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ github.ref_name }}
body_path: CHANGELOG.md
draft: false # 设置为 false 可立即发布版本
files: |
EasyTidy_${{ github.ref_name }}_win-x64.zip
EasyTidy_${{ github.ref_name }}_win-x64_7z.7z
EasyTidy_${{ github.ref_name }}_win-x64_sha256.txt