-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1.04 KB
/
buildAndPublishPackage.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
name: CI
on:
push:
branches: [ $default-branch ]
pull_request:
branches:
- master
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Runs a single command using the runners shell
buildPr:
if: github.event_name == 'pull_request'
uses: bielu/bielu.GithubActions.Templates/.github/workflows/ci.yml@main
with:
suffix: "pr"
build:
if: github.event_name == 'release'
uses: bielu/bielu.GithubActions.Templates/.github/workflows/ci.yml@main
buildBeta:
if: github.event_name != 'pull_request' && github.event_name != 'release'
uses: bielu/bielu.GithubActions.Templates/.github/workflows/ci.yml@main
with:
suffix: "beta"
deploy:
needs: [build,buildBeta]
if: |
always()
&& contains(needs.*.result, 'success')
&& !contains(needs.*.result, 'failure')
uses: bielu/bielu.GithubActions.Templates/.github/workflows/releaseNuget.yml@main
secrets:
NUGET_APIKEY: ${{ secrets.NUGET_APIKEY }}