-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (42 loc) · 1.45 KB
/
Build for Windows.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
47
48
49
50
name: No Test Release Windows
env:
PATH_TO_PROJECTS: ${{ github.workspace }}\src
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output\
NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json'
GITHUB_PACKAGES_URL: 'https://nuget.pkg.github.com/asv-soft/index.json'
jobs:
deploy:
name: 'Deploy'
runs-on: windows-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: Setup .Net
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
8.x.x
- name: Getting version
id: version
uses: battila7/get-version-action@v2
- name: Checking version
run: echo ${{ steps.version.outputs.version-without-v }}
- name: Setting the project version
run: |
dotnet tool install -g dotnet-setversion
setversion ${{ steps.version.outputs.version-without-v }} ${{ env.PATH_TO_PROJECTS }}\Asv.Drones.Gui.Desktop\Asv.Drones.Gui.Desktop.csproj
- name: Restoring dependencies
run: |
cd src
dotnet restore
steps:
- name: Building projects
with:
repo_token: "${{ secrets.GIHUB_NUGET_AUTH_TOKEN }}"
prerelease: false
run: |
cd src
dotnet build -c Release
files: |
*Setup.exe
*.zip