Skip to content

Commit a60f49f

Browse files
authored
Merge pull request #7 from BenCreating/github_action_deploy
Add GitHub Action for deploy
2 parents 951aeb7 + e80ab77 commit a60f49f

10 files changed

Lines changed: 2210 additions & 395 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
- name: Setup Node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version-file: '.node-version'
27+
cache: 'npm'
2328
- name: Install dependencies
24-
run: npm install
25-
- name: Merge definition files
26-
run: |
27-
node javascript/merge-definitions.js
29+
run: npm ci
30+
- name: Build assets
31+
run: npm run build
2832
- name: Setup Pages
2933
uses: actions/configure-pages@v4
3034
- name: Upload artifact

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ resources/animation-definitions.json
33
resources/category-definitions.json
44
resources/palette-definitions.json
55
resources/sheet-definitions.json
6+
index.html

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21.2.0
1+
22.13.0
File renamed without changes.

javascript/CharacterGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { zipSync } from 'https://cdn.skypack.dev/pin/fflate@v0.7.3-x0OS7MYd1pAJyCyfqyxe/mode=imports,min/optimized/fflate.js'
1+
import { zipSync } from 'fflate'
22
import AttributionController from './AttributionController.js'
33
import OptionController from './OptionController.js'
44
import SpritesheetController from './SpritesheetController.js'

0 commit comments

Comments
 (0)