-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 1.11 KB
/
CD.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
name: CD Pipeline
on:
push:
branches:
- CD_postavljanje
jobs:
release:
runs-on: windows-latest
steps:
- name: Code Checkout
uses: actions/checkout@v3.5.2
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.2.0
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.3.1
- name: Restore NuGet Package
run: nuget restore Software\E_Libra\E_Libra.sln
- name: Build a solution
run: msbuild Software\E_Libra\E_Libra.sln /p:platform="Any CPU" /p:configuration="Debug"
- name: Create a setup
run: msbuild Software\E_Libra\E_Libra.sln /t:Publish /p:Configuration=Debug /p:PublishDir=Publish/
- name: Create zip archive
uses: TheDoctor0/zip-release@0.7.1
with:
type: 'zip'
filename: 'setup.zip'
path: CD
- name: Create a release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
prerelease: false
files: CD/setup.zip