Skip to content

Commit

Permalink
Create dotnet-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkadySK authored Aug 18, 2022
1 parent a6d6c1d commit 61b17e1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish

on:
release:
types: [ published ]

jobs:
build-and-publish:
name: Build and Publish

runs-on: windows-latest

steps:

- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x

- name: Publish
run: dotnet publish -c Release --nologo -o publish\GbxMapBrowser

- name: Zip
uses: thedoctor0/zip-release@main
with:
directory: publish
path: GbxMapBrowser
filename: GbxMapBrowser.zip

- name: Upload
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: publish\GbxMapBrowser.zip
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 61b17e1

Please sign in to comment.