-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (29 loc) · 1.1 KB
/
ADSearch-build.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
name: ADSearch-build
on:
schedule:
- cron: '0 11 * * *' # runs at 11:00 UTC everyday
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Download ADSearch Main
run: |
cd $Env:GITHUB_WORKSPACE
powershell Invoke-WebRequest -URI https://api.github.com/repos/tomcarver16/ADSearch/zipball -OutFile "ADSearch.zip"
mkdir ADSearch
tar -xf ADSearch.zip -C ADSearch --strip-components 1
- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NuGetAPIKey }}
nuget-version: '5.x'
- name: Nuget Restore
run: nuget restore $Env:GITHUB_WORKSPACE\ADSearch\ADSearch.sln
- name: Build Certify
run: |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe $Env:GITHUB_WORKSPACE\ADSearch\ADSearch\ADSearch.csproj
- uses: actions/upload-artifact@master
with:
name: ADSearch
path: ADSearch\ADSearch\bin\Debug\ADSearch.exe