Skip to content

Commit

Permalink
chore: try new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Jan 3, 2025
1 parent 27d2a41 commit 64b4615
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,20 @@ jobs:
with:
submodules: true
fetch-tags: true
- name: Get latest tag
uses: rexdefuror/[email protected]
- 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
uses: cloudflare/wrangler-action@v3
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:
Expand Down

0 comments on commit 64b4615

Please sign in to comment.