Skip to content

chore: make build with conditons #9

chore: make build with conditons

chore: make build with conditons #9

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
build:
if: github.event_name == 'release'
uses: bielu/bielu.GithubActions.Templates/.github/workflows/ci.yml@main
build:

Check failure on line 18 in .github/workflows/buildAndPublishPackage.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/buildAndPublishPackage.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
if: github.event_name == 'pull_request'
uses: bielu/bielu.GithubActions.Templates/.github/workflows/ci.yml@main
with:
suffix: "pr"
build:
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
uses: bielu/bielu.GithubActions.Templates/.github/workflows/releaseNuget.yml@main