-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.3 KB
/
veracode-build-dot-net.yml
File metadata and controls
57 lines (50 loc) · 1.3 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
name: Veracode Build Java Maven Application
on:
workflow_call:
inputs:
repository:
required: true
type: string
ref:
required: true
type: string
token:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
# runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ inputs.repository }}
ref: ${{ inputs.ref }}
token: ${{ inputs.token }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
- name: Build
run: |
dotnet restore
dotnet publish -p:UseAppHost=False -p:MapFileExtensions=False -c Debug -o ./output
- name: Create zip archive
run: zip -r veracode.zip ./output
# - name: Setup .NET
# run: |
# choco install dotnetcore-sdk -y
# dotnet --version
# - name: Build application
# run: |
# dotnet restore
# dotnet publish -c Debug -o ./output
# - name: Setup 7zip
# run: |
# choco install 7zip -y
# - name: Create zip archive
# run: 7z a -tzip veracode.zip ./output
- uses: actions/upload-artifact@v3
with:
name: veracode-artifact
path: veracode.zip