diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-compile.yml similarity index 98% rename from .github/workflows/github-actions.yml rename to .github/workflows/github-compile.yml index d6dd9486..a4fe0da6 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-compile.yml @@ -18,6 +18,7 @@ on: - "develop" jobs: + build: runs-on: macos-14 @@ -72,4 +73,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: 'nugets' - path: Artifacts/**/*.nupkg + path: 'Artifacts/**/*.nupkg' diff --git a/.github/workflows/github-deploy.yml b/.github/workflows/github-deploy.yml new file mode 100644 index 00000000..97c38723 --- /dev/null +++ b/.github/workflows/github-deploy.yml @@ -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 diff --git a/Laerdal.McuMgr.sln b/Laerdal.McuMgr.sln index 22b36d38..0825d0c8 100644 --- a/Laerdal.McuMgr.sln +++ b/Laerdal.McuMgr.sln @@ -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}"