Merge pull request #24 from azhuge233/dependabot/nuget/deps-c30bfa1b14 #48
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: Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- '**/**.md' | |
- '.github/**' | |
jobs: | |
publish: | |
name: Publish the app | |
runs-on: ubuntu-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 | |
run: | | |
dotnet restore | |
dotnet publish -c release -r win-x64 -p:PublishDir="$GITHUB_WORKSPACE/bin/release/win-x64" -p:PublishSingleFile=true --sc | |
- name: Install Zip | |
uses: montudor/action-zip@v1 | |
- name: Create Zip | |
run: | | |
zip -qq -r EGS-win-x64.zip win-x64/* | |
working-directory: bin/release | |
- name: Create Release | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
files: bin/release/*.zip |