Repository navigation
62 lines (55 loc) · 1.69 KB
/
Copy pathrelease.yml
File metadata and controls
62 lines (55 loc) · 1.69 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release
on:
workflow_dispatch:
inputs:
tags:
description: 'tag'
push:
tags:
- "v*"
env:
SOLUTION_NAME: ScreenRecorderLib
PROJECT_NAME: ScreenRecorderLib
jobs:
build:
name: Build ${{ matrix.platform }}
runs-on: windows-2022
strategy:
matrix:
platform: [x64, x86, ARM64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- uses: microsoft/setup-msbuild@v1.1
- run: nuget restore ${{ env.SOLUTION_NAME }}.sln
- run: msbuild /m /p:Configuration=Release /p:Platform="${{ matrix.platform }}" ${{ env.SOLUTION_NAME }}.sln
- uses: actions/upload-artifact@v4
with:
name: ScreenRecorderLib.${{matrix.platform}}
path: |
${{ env.PROJECT_NAME }}\bin\${{ matrix.platform }}\Release\ScreenRecorderLib.dll
${{ env.PROJECT_NAME }}\bin\${{ matrix.platform }}\Release\ScreenRecorderLib.xml
${{ env.PROJECT_NAME }}\bin\${{ matrix.platform }}\Release\ScreenRecorderLib.pdb
release:
name: Upload Release
runs-on: ubuntu-latest
needs : build
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts/
- name: Zip binaries
run: |
cd artifacts
for d in ScreenRecorderLib.*; do
zip -j "${d}.zip" "$d"/*
done
- name: Display structure of downloaded files
run: ls -R
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: artifacts/*.zip