diff --git a/.github/workflows/release.yml b/.github/workflows/cd.yml similarity index 67% rename from .github/workflows/release.yml rename to .github/workflows/cd.yml index be94a053..96bf10b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/cd.yml @@ -1,10 +1,11 @@ -name: Release +name: Continous Deployment on: - push: - branches: - - feature/package-artifact # TODO: what should be a trigger? - workflow_dispatch: + workflow_run: + workflows: ["Continous Integration"] + branches: ["master", "feature/package-artifact"] #TODO: remove test branch + types: + - completed defaults: run: @@ -17,11 +18,12 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 # TODO: this file is not available, as it's an artefact from another pipeline - # https://github.com/actions/download-artifact#download-artifacts-from-other-workflow-runs-or-repositories + - uses: actions/download-artifact@v4 with: name: Release path: ./Release/ + github-token: ${{ secrets.GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} - uses: actions/cache@v3 id: cacher diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6cad18a..2e3de958 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,23 @@ -name: CI - -on: [pull_request] +name: Continous Integration + +on: + push: + branches: [master] + paths: + - "docs/**" + - "JiraPS/**" + - "Tests/**" + pull_request: + branches: [master] + paths: + - ".github/workflows/**" + - "docs/**" + - "JiraPS/**" + - "Tests/**" + - "Tools/**" + - "JiraPS.build.ps1" + - "PSScriptAnalyzerSettings.psd1" + workflow_dispatch: defaults: run: