-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.14 KB
/
github_build_and_publish.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
name: Build and Publish
on:
workflow_dispatch:
inputs:
BUILD_PATTERN:
description: "Projects to build. Project will be build if project name is in build pattern."
required: false
UPLOAD_PATTERN:
description: "Projects to upload. Project will be uploaded if project name is in upload pattern."
required: false
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
#------------------------------
- name: Checkout repository
uses: actions/checkout@v2
#------------------------------
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.404
#-------------------------------
- name: Build and Publish
env:
UPLOAD_NUGET: ${{ secrets.UPLOAD_NUGET }}
UPLOAD_NUGET_API_KEY: ${{ secrets.UPLOAD_NUGET_API_KEY }}
BUILD_PATTERN: ${{ inputs.BUILD_PATTERN }}
UPLOAD_PATTERN: ${{ inputs.UPLOAD_PATTERN }}
run: |
chmod a+x ./build.sh
./build.sh --target=Travis --ForceUploadPackages=true --RunCodeCoverage=false
#-------------------------------