-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 988 Bytes
/
publish.yml
File metadata and controls
39 lines (31 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: "Deploy Class Commands"
on:
push:
branches: [ "master" ]
env:
PROJECT_PATH: SimpleLangGui/SimpleLangGui.csproj
jobs:
deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
- uses: csexton/release-asset-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
pattern: SimpleLangGui/bin/Release/netcoreapp3.1/win-x64/publish/*.exe
release-url: ${{ steps.create_release.outputs.upload_url }}