Skip to content

Merge pull request #32 from azhuge233/dependabot/nuget/others-abc8515f41 #75

Merge pull request #32 from azhuge233/dependabot/nuget/others-abc8515f41

Merge pull request #32 from azhuge233/dependabot/nuget/others-abc8515f41 #75

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches: [ master ]
paths-ignore:
- '**/**.md'
- '.github/**'
jobs:
publish:
name: Publish the app
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Publish
shell: pwsh
run: |
Set-Location "$env:GITHUB_WORKSPACE"
dotnet publish -c release -r win-x64 -p:PublishDir="$env:GITHUB_WORKSPACE\Release\win-x64" --sc --nologo
Compress-Archive -Path "$env:GITHUB_WORKSPACE\Release\win-x64" -DestinationPath "EB-win-x64.zip"
- name: Create Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
files: ./*.zip