Bump postcss-cli from 10.1.0 to 11.0.0 #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
pull_request: { } | |
jobs: | |
build: | |
name: Build | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install | |
run: | | |
npm ci | |
- name: "Build: Red" | |
run: | | |
npm run build:red | |
mv dist/App dist/app-red | |
- name: "Build: Green" | |
run: | | |
npm run build:green | |
mv dist/App dist/app-green | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
deploy-green: | |
name: "Deploy: green" | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
needs: build | |
environment: | |
name: green | |
url: https://demo.engity.green | |
steps: | |
- name: "Download artifacts" | |
uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
- name: Deploy | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
command: pages publish --project-name=demo-engity-green dist/app-green | |
deploy-red: | |
name: "Deploy: red" | |
concurrency: ci-${{ github.ref }} | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/main' | |
environment: | |
name: red | |
url: https://demo.engity.app | |
steps: | |
- name: "Download artifacts" | |
uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: dist | |
- name: Deploy | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
command: pages publish --project-name=demo-engity-red dist/app-red | |