diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be3726f..a1ca532 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,9 +5,8 @@ on: branches: ['main'] jobs: - build: + build-page: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 - name: Use Node.js 18.x @@ -19,6 +18,27 @@ jobs: - name: Install packages run: | npm install + + - name: Build Page + run: | + npx @cloudflare/next-on-pages + + build-worker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 18.x + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + + - name: Install packages + run: | cd worker npm install - cd .. + + - name: Build worker + run: | + cd worker + npx wrangler deploy src/index.ts --outdir dist --dry-run