Skip to content

Commit

Permalink
Chore: Add GitHub Actions (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Jan 9, 2024
1 parent 6d188ed commit a6793af
Show file tree
Hide file tree
Showing 8 changed files with 3,401 additions and 346 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/game-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Game Workflow
on:
workflow_call:
inputs:
game:
required: true
type: string
jobs:
game-build-workflow:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
working-directory: ./${{ inputs.game }}
run: npm ci
- name: Build Game
working-directory: ./${{ inputs.game }}
run: npm run build
- name: Upload Game Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.game }}
path: ./${{ inputs.game }}/dist
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Build Games
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
build:
strategy:
matrix:
game: [bubbo-bubbo, puzzling-potions]
uses: ./.github/workflows/game-workflow.yml
with:
game: ${{ matrix.game }}
1 change: 1 addition & 0 deletions bubbo-bubbo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ dist-ssr
*.sw?
public
src/manifest.json
.assetpack
Loading

0 comments on commit a6793af

Please sign in to comment.