From 64b4615a0ced8bc8aab4b0248ea582bf54ccc9b0 Mon Sep 17 00:00:00 2001 From: lajbel Date: Thu, 2 Jan 2025 23:27:35 -0300 Subject: [PATCH] chore: try new workflow --- .github/workflows/deploy.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b740a4a..6239d09 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,21 +10,12 @@ jobs: with: submodules: true fetch-tags: true - - name: Get latest tag - uses: rexdefuror/get-latest-tag@v1.0.1 + - name: Checkout new tags to branches + id: checkout-tags + uses: chachako/checkout-tags@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - owner: ${{ github.repository_owner }} - repo: "kaplayjs/kaplay" - prefix: 4000 # optional - suffix: '' # optional - regex: '' # optional - releaseOnly: true # optional - - name: Checkout submodule to v4000 - run: | - cd kaplay - git fetch --tags - git checkout ${{ env.LATEST_TAG }} + filter: v[4000]\.. + base: "kaplayjs/kaplay" - name: Setup PNPM uses: pnpm/action-setup@v4 - name: Deploy app @@ -32,7 +23,7 @@ jobs: with: packageManager: pnpm apiToken: ${{ secrets.CLOUDFLARE_WORKERS_KEY }} - command: pages deploy dist --project-name=kaplay4000 + command: pages deploy dist --project-name=kaplay4000z preCommands: "pnpm i && pnpm build" deploylegacy: