From 527d2edc288396e7008ec6efce7a253719f05d8d Mon Sep 17 00:00:00 2001 From: ciiiii Date: Fri, 14 Jun 2024 02:32:51 +0800 Subject: [PATCH] Fix production configuration --- .github/workflows/deploy.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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