diff --git a/.github/workflows/github-compile.yml b/.github/workflows/github-compile.yml index a4fe0da6..fb98caa3 100644 --- a/.github/workflows/github-compile.yml +++ b/.github/workflows/github-compile.yml @@ -2,20 +2,23 @@ # https://docs.github.com/en/actions/migrating-to-github-actions/automated-migrations/migrating-from-azure-devops-with-github-actions-importer#environment-variable-mapping # -name: Builder +name: 'Builder' env: Build_Repository_Folderpath: ${{ github.workspace }} on: + workflow_call: # reusable workflows other workflows can trigger this + workflow_dispatch: # allows to run this workflow manually from the actions tab + push: branches: - - "**" # only trigger on branches not on tags + - '**' # '*' matches zero or more characters but does not match the `/` character '**' matches zero or more of any character + - '!main' # main will trigger/reuse this workflow by other means via workflow call + - '!master' # master will trigger/reuse this workflow by other means via workflow call + - '!develop' # develop will trigger/reuse this workflow by other means via workflow call + - '!ksidirop/MAN-296-migrate-to-github-actions' - pull_request: - branches: - - "main" - - "develop" jobs: diff --git a/.github/workflows/github-deploy.yml b/.github/workflows/github-deploy.yml index 97c38723..d32c2bb4 100644 --- a/.github/workflows/github-deploy.yml +++ b/.github/workflows/github-deploy.yml @@ -2,19 +2,23 @@ name: 'Deploy Nugets' on: - workflow_run: - types: [ "completed" ] - branches: [ "main", "develop" ] - workflows: [ "Builder" ] + push: + branches: [ "main", "master", "develop", "ksidirop/MAN-296-migrate-to-github-actions" ] + + workflow_dispatch: # allows to run this workflow manually from the Actions tab + - workflow_dispatch: # Allows to run this workflow manually from the Actions tab jobs: + compile: + uses: './.github/workflows/github-compile.yml' # reuse the compile workflow + + deploy: runs-on: macos-14 - needs: [ "build" ] + needs: "build" steps: