diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 0f2f622..8473370 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -13,15 +13,11 @@ jobs: runs-on: ubuntu-latest name: Build & Deploy steps: - - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - run: npm install + - uses: actions/checkout@v4 - name: Publish - uses: cloudflare/wrangler-action@2.0.0 + uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CF_API_TOKEN }} - env: - CF_ACCOUNT_ID: ${{secrets.CF_ACCOUNT_ID}} \ No newline at end of file + accountId: ${{secrets.CF_ACCOUNT_ID}} + command: deploy --env production --minify src/index.js + environment: production \ No newline at end of file