Skip to content

Commit

Permalink
feat (github-deploy.yml): introduce sub-workflow to push nugets over …
Browse files Browse the repository at this point in the history
…to Laerdal's Azure private nuget server
  • Loading branch information
ksidirop-laerdal committed Mar 18, 2024
1 parent 7323b60 commit f96d01c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:
- "develop"

jobs:

build:

runs-on: macos-14
Expand Down Expand Up @@ -72,4 +73,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: 'nugets'
path: Artifacts/**/*.nupkg
path: 'Artifacts/**/*.nupkg'
27 changes: 27 additions & 0 deletions .github/workflows/github-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 'Deploy Nugets'

on:

workflow_run:
types: [ "completed" ]
branches: [ "main", "develop" ]
workflows: [ "Builder" ]

workflow_dispatch: # Allows to run this workflow manually from the Actions tab

jobs:

deploy:
runs-on: macos-14

needs: [ "build" ]

steps:

- name: '⬇️ Download Artifacts'
uses: actions/download-artifact@v3
with:
name: 'nugets'
path: 'Artifacts/**/*.nupkg'

# todo push to nuget server
3 changes: 2 additions & 1 deletion Laerdal.McuMgr.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Misc", "_Misc", "{2459FC0F
Laerdal.Version.sh = Laerdal.Version.sh
global.json = global.json
Laerdal.SetupBuildEnvironment.sh = Laerdal.SetupBuildEnvironment.sh
.github\workflows\github-actions.yml = .github\workflows\github-actions.yml
.github\workflows\github-compile.yml = .github\workflows\github-compile.yml
.github\workflows\github-deploy.yml = .github\workflows\github-deploy.yml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Laerdal.McuMgr", "Laerdal.McuMgr\Laerdal.McuMgr.csproj", "{4E2952A5-394E-4184-8E12-F2D5342A43B2}"
Expand Down

0 comments on commit f96d01c

Please sign in to comment.