diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index adc5a2b..7b4b014 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,7 +8,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - projects: [gig-smart, eighth-light] + # projects: [gig-smart, eighth-light] + include: + - project: gig-smart + package: gig-smart + - project: eighth-light + package: eighth-light permissions: contents: read deployments: write @@ -63,15 +68,15 @@ jobs: run: npm ci --omit=dev # Run a build step here if your project requires - name: Build - run: npm run build --ws + run: npm run build -w ${{ matrix.package }} - name: Publish to Cloudflare Pages uses: cloudflare/pages-action@v1 with: apiToken: ${{ secrets.DEPLOY_TOKEN }} accountId: ${{ secrets.ACCOUNT_ID }} - projectName: ${{ matrix.projects }} - directory: ${{ matrix.projects }}/dist + projectName: ${{ matrix.project }} + directory: ${{ matrix.package }}/dist # Optional: Enable this if you want to have GitHub Deployments triggered # gitHubToken: ${{ secrets.GITHUB_TOKEN }} # Optional: Switch what branch you are publishing to.