diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 340269dc7..0ba31f500 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -1,5 +1,10 @@ name: Run Tests on Branch -on: [push] +on: + push: + branches: + - '**' + - '!master' + - '!staging' jobs: call-tests: uses: ./.github/workflows/tests.yml diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 000000000..510f6eb5b --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,19 @@ +name: Run Tests on Branch +on: + push: + tags: + - v* +jobs: + call-tests: + uses: ./.github/workflows/tests.yml + secrets: inherit + call-build: + uses: ./.github/workflows/build.yml + secrets: inherit + needs: call-tests + call-publish-v2: + uses: ./.github/workflows/publish-v2.yml + secrets: inherit + needs: call-build + with: + environment: production diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index a56bf9205..25cb06d70 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -2,15 +2,15 @@ name: Run Tests on Branch on: push: branches: - - 'feature/sc-126222/update-the-particle-cli-executable-in-workbench' + - 'staging' jobs: - #call-tests: - # uses: ./.github/workflows/tests.yml - # secrets: inherit + call-tests: + uses: ./.github/workflows/tests.yml + secrets: inherit call-build: uses: ./.github/workflows/build.yml secrets: inherit - #needs: call-tests + needs: call-tests call-publish: uses: ./.github/workflows/publish-v2.yml secrets: inherit