diff --git a/.github/workflows/develop-cd.yml b/.github/workflows/develop-cd.yml new file mode 100644 index 0000000..429030c --- /dev/null +++ b/.github/workflows/develop-cd.yml @@ -0,0 +1,27 @@ +name: develop CD + +on: + push: + branches: ['develop'] + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Git Checkout + uses: actions/checkout@v4.1.1 + + - uses: actions/setup-node@v3 + with: + node-version: 19 + + - name: Install dependencies + run: yarn install + + - name: Build next app + run: yarn build \ No newline at end of file diff --git a/.github/workflows/product-cd.yml b/.github/workflows/product-cd.yml new file mode 100644 index 0000000..68c05d4 --- /dev/null +++ b/.github/workflows/product-cd.yml @@ -0,0 +1,27 @@ +name: develop CD + +on: + push: + branches: ['main'] + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Git Checkout + uses: actions/checkout@v4.1.1 + + - uses: actions/setup-node@v3 + with: + node-version: 19 + + - name: Install dependencies + run: yarn install + + - name: Build next app + run: yarn build \ No newline at end of file