From 421f1efa50c8850504d9b9c62f4c66f4a00d21e3 Mon Sep 17 00:00:00 2001 From: Gauthier Fiorentino Date: Tue, 19 Mar 2024 17:47:08 +0100 Subject: [PATCH] CI: Add push on main workflow --- .github/workflows/CD.yml | 22 ++++++++++++++++++++++ .github/workflows/CI.yml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/CD.yml diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml new file mode 100644 index 0000000..bda998e --- /dev/null +++ b/.github/workflows/CD.yml @@ -0,0 +1,22 @@ +name: "CD" + +on: + push: + branches: + - main + +jobs: + tests: + uses: ./.github/workflows/tests.yml + type-check: + uses: ./.github/workflows/type-check.yml + build: + needs: [tests, type-check] + uses: ./.github/workflows/build.yml + with: + artifact-name: "lib-latest" + build-storybook: + needs: [tests, type-check] + uses: ./.github/workflows/build-storybook.yml + with: + artifact-name: "storybook-latest" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index aaeb8a2..62a301f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,6 +1,6 @@ name: "CI" -on: [pull_request] +on: pull_request jobs: tests: