Skip to content

Commit

Permalink
use ci/cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gballigand committed Feb 29, 2024
1 parent 29a9cbc commit ace5c5f
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build & Tests

on: [push]
on:
workflow_call:

jobs:
dotnet-tests:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: pipeline

on: [push]

jobs:
build_and_test:
name: Build & Test
uses: ./.github/workflows/build-and-tests.yml

publish_npm:
name: Publish NPM
needs: build_and_test
if: startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/publish-to-npm.yml
secrets: inherit

publish_nuget:
name: Publish Nuget
needs: build_and_test
if: startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/publish-to-nuget.yml
secrets: inherit

publish_weavers:
name: Publish weavers
needs: build_and_test
if: startsWith(github.ref, 'refs/tags/')
uses: ./.github/workflows/publish-weavers.yml
secrets: inherit
7 changes: 4 additions & 3 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Publish Package to NPM

on:
push:
tags:
- "*"
workflow_call:
secrets:
NPM_TOKEN:
required: true

jobs:
publish:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-to-nuget.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publish Package to Nuget.org

on:
push:
tags:
- "*"
workflow_call:
secrets:
NUGET_API_KEY:
required: true

jobs:
publish:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish-weavers.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Push local Packages to Nuget.org

on:
push:
tags:
- "*"
workflow_call:
secrets:
NUGET_API_KEY:
required: true

jobs:
publish:
Expand Down

0 comments on commit ace5c5f

Please sign in to comment.