Skip to content

Commit

Permalink
doc deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Dec 4, 2024
1 parent 8577a0f commit 44befb9
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy Docs

on:
push:
branches:
- main
- docs

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- run: npm ci
- run: |
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "[email protected]"
git remote set-url origin https://git:${GIT_PASS}@github.com/pixijs/create-pixi.git
npm run deploy
env:
GIT_USER: $GITHUB_ACTOR
GIT_PASS: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,5 @@ jobs:
- name: Test Lint
run: npm run test:lint

- name: Test Types
run: npm run test:types

- name: Build for Distribution
run: xvfb-run --auto-servernum npm run build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
"start": "node index.js",
"test": "vitest run",
"test:lint": "eslint",
"test:types": "tsc --noEmit",
"test:watch": "vitest",
"release": "xs bump,git-push",
"publish-ci": "xs publish",
"docs": "npm run --workspace docs start"
"docs": "npm run --workspace docs start",
"deploy": "npm run deploy --workspace docs"
},
"lint-staged": {
"*.{ts,tsx}": [
Expand Down
2 changes: 2 additions & 0 deletions templates/template-game-web/src/engine/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { sound } from "@pixi/sound";
import type { ApplicationOptions } from "pixi.js";
import { Application, Assets } from "pixi.js";

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - This is a dynamically generated file by AssetPack
import manifest from "../manifest.json";

import { BGM, SFX } from "./audio";
Expand Down

0 comments on commit 44befb9

Please sign in to comment.