forked from de4dot/de4dot
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.41 KB
/
main.yml
File metadata and controls
49 lines (42 loc) · 1.41 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
name: GitHub CI
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types: released
jobs:
build:
name: Build
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build
shell: pwsh
run: |
$msbuildPath = Split-Path (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\Current\Bin\amd64\MSBuild.exe | Select-Object -First 1) -Parent
$env:PATH = $msbuildPath + ';' + $env:PATH
.\build.ps1
- uses: actions/upload-artifact@v1
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
with:
name: de4dot-net35
path: Release/net35
- uses: actions/upload-artifact@v1
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
with:
name: de4dot-net45
path: Release/net45
- uses: actions/upload-artifact@v1
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
with:
name: de4dot-netcoreapp2.1
path: publish-netcoreapp2.1
- uses: actions/upload-artifact@v1
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
with:
name: de4dot-netcoreapp3.1
path: publish-netcoreapp3.1