diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be49622..0ef97cc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,8 +2,7 @@ name: 🚚 Deploy on: push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+-[0-9]+' + branches: [master] env: NODE_OPTIONS: "--max_old_space_size=8192" @@ -28,24 +27,24 @@ jobs: working-directory: ./blog run: NODE_ENV=production pnpm run build - - name: Prepare tag - id: prepare_tag - if: startsWith(github.ref, 'refs/tags/') - run: | - TAG_NAME="${GITHUB_REF##refs/tags/}" - echo "::set-output name=tag_name::${TAG_NAME}" - echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}" + # - name: Prepare tag + # id: prepare_tag + # if: startsWith(github.ref, 'refs/tags/') + # run: | + # TAG_NAME="${GITHUB_REF##refs/tags/}" + # echo "::set-output name=tag_name::${TAG_NAME}" + # echo "::set-output name=deploy_tag_name::deploy-${TAG_NAME}" - - name: Cloudflare Pages Upload - uses: cloudflare/pages-action@v1 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - projectName: ens-blog - branch: master - directory: blog/out - # gitHubToken: ${{ secrets.GITHUB_TOKEN }} - wranglerVersion: '3' + # - name: Cloudflare Pages Upload + # uses: cloudflare/pages-action@v1 + # with: + # apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + # projectName: ens-blog + # branch: master + # directory: blog/out + # # gitHubToken: ${{ secrets.GITHUB_TOKEN }} + # wranglerVersion: '3' # - name: Edgeserver Upload # uses: lvkdotsh/edgeserver-action@v0.1.2-pre.4