-
Notifications
You must be signed in to change notification settings - Fork 67
39 lines (34 loc) · 1.27 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
name: publish
on:
release:
types: [created]
jobs:
deploy:
runs-on: windows-latest # Must build on windows to work correctly (otherwise console window is shown)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x" # SDK Version to use.
- name: Publish project
run: |
dotnet publish -c Release -o publish/RAWSimO RAWSimO.Visualization/RAWSimO.Visualization.csproj
- name: Copy resource files
run: |
mkdir publish/RAWSimO/Resources
cp -r Material/Resources/* publish/RAWSimO/Resources
- name: Zip output
run: |
cd publish
7z a RAWSimO.zip *
echo "Dir content:"
ls
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: publish/RAWSimO.zip
asset_name: RAWSimO-${{ github.ref }}.zip
tag: ${{ github.ref }}
overwrite: true
body: "RAWSimO zip file"