diff --git a/.forgejo/workflows/depoly.yml b/.forgejo/workflows/depoly.yml index a64b095..a367480 100644 --- a/.forgejo/workflows/depoly.yml +++ b/.forgejo/workflows/depoly.yml @@ -1,10 +1,5 @@ -on: - push: - branches: - - master - tags: - - "v*" +on: ['push'] jobs: depoly: @@ -31,19 +26,11 @@ jobs: - name: Build Dist run: pnpm dist - - name: Depoly to Preview + - name: Depoly to Cloudflare uses: https://github.com/cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} command: pages deploy --project-name=tututheapp dist - if: github.event.ref_type == 'branch' - - - name: Depoly to Production - uses: https://github.com/cloudflare/wrangler-action@v3 - with: - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} - accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy --project-name=tututheapp dist --branch=production - if: github.event.ref_type == 'tag' + if: "env.GITHUB_REF_NAME == 'master'" diff --git a/package.json b/package.json index 2e4f1f3..cef961e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "tutu", - "version": "1.0.0", + "version": "0.1.0", "description": "", "private": true, "type": "module",