Skip to content

Commit b6e1a3c

Browse files
WireSockUI - Automated Release
1 parent 582c80c commit b6e1a3c

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'Build and publish release'
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build-and-publish-release:
10+
runs-on: windows-latest
11+
permissions:
12+
contents: write
13+
if: github.event_name == 'push'
14+
steps:
15+
- name: Checkout from GitHub
16+
uses: actions/checkout@v3
17+
18+
- name: Add msbuild to PATH
19+
uses: microsoft/setup-msbuild@v1
20+
21+
- name: Build
22+
run: msbuild WireSockUI/WireSockUI.csproj -t:rebuild -verbosity:minimal -property:Configuration=Release
23+
24+
- name: Package Release
25+
uses: thedoctor0/zip-release@0.7.1
26+
with:
27+
type: 'zip'
28+
filename: 'WireSockUI-${{ github.ref_name }}.zip'
29+
directory: 'bin\exe\x64\Release'
30+
exclusions: '*.pdb'
31+
32+
- name: Upload Release
33+
uses: ncipollo/release-action@v1
34+
with:
35+
artifacts: 'bin\exe\x64\Release\WireSockUI-${{ github.ref_name }}.zip'
36+
name: 'WireSockUI-${{ github.ref_name }}'
37+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)