diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 861e027..da9c849 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -10,29 +10,29 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install Dependencies - run: yarn install - - - name: Set productDetails - run: node ./scripts/product-details.js - env: - NAMI_PRODUCT_DETAILS: '${{ secrets.NAMI_PRODUCT_DETAILS }}' - - - name: Build - run: yarn build:basic-react - env: - APP_PLATFORM_ID: ${{ secrets.APP_PLATFORM_ID }} - PLACEMENT_LABEL: ${{ secrets.PLACEMENT_LABEL }} - - - name: Deploy to Cloudflare Pages - run: yarn deploy:basic-react - env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Install Dependencies + run: yarn install + + - name: Set productDetails + run: node ./scripts/product-details.js + env: + NAMI_PRODUCT_DETAILS: "${{ secrets.NAMI_PRODUCT_DETAILS }}" + + - name: Build + run: yarn build:basic-react + env: + APP_PLATFORM_ID: ${{ secrets.APP_PLATFORM_ID }} + PLACEMENT_LABEL: ${{ secrets.PLACEMENT_LABEL }} + + - name: Deploy to Cloudflare Pages + run: yarn deploy:basic-react + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}