diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c4c51c0..c65744e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,7 +5,7 @@ on: branches: [ "main" ] jobs: - build: + worker: runs-on: ubuntu-latest steps: @@ -19,3 +19,18 @@ jobs: npm install command: deploy workingDirectory: worker + + pages: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Deploy Workers + uses: cloudflare/wrangler-action@v3.1.0 + with: + apiToken: ${{ secrets.API_TOKEN }} + preCommands: | + npm install + npx @cloudflare/next-on-pages + command: pages deploy .vercel/output/static