-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.04 KB
/
Publish.yml
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
40
41
42
43
44
45
46
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: 7.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