Skip to content

Commit

Permalink
chore: fetch assets first
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Aug 3, 2024
1 parent 272d760 commit 9209727
Show file tree
Hide file tree
Showing 11 changed files with 3,781 additions and 2,344 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
on:
push:
push:

jobs:
deploy:
name: "Deploy KAPLAYGROUND on Cloudflare Workers"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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=kaplay
preCommands: "pnpm i && pnpm build"
deploy:
name: "Deploy KAPLAYGROUND on Cloudflare Workers"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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=kaplay
preCommands: "pnpm i && pnpm build"
48 changes: 24 additions & 24 deletions .github/workflows/upgrade-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ jobs:
shell: bash

steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true

# Update references
- name: Git Submodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
# Update references
- name: Git Submodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: bump repo"
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: example-patches
delete-branch: true
title: "chore: bump repo"
reviewers: lajbel
body: "ohhi"
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: bump repo"
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: example-patches
delete-branch: true
title: "chore: bump repo"
reviewers: lajbel
body: "ohhi"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ pnpm-debug.log*
public/kaboom.js
public/kaboom.js.map
.vite
assets.json
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
"typescript.tsdk": "node_modules/typescript/lib"
}
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Setup

```
git submodule init
git submodule update
pnpm i
pnpm dev
```
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# KAPLAYGROUND

KAPLAYGROUND is a playground for KAPLAY. You can test, create and learn how
KAPLAY works with examples.
KAPLAY works with examples.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"version": "1.0.0-beta.2",
"scripts": {
"install": "git submodule init && git submodule update && cd kaplay && pnpm i",
"install": "git submodule init && git submodule update && node scripts/fetchAssets.js && cd kaplay && pnpm i",
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
Expand Down
Loading

0 comments on commit 9209727

Please sign in to comment.