Skip to content

Commit 4062711

Browse files
committed
Publish to gh-pages
1 parent ba626dd commit 4062711

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Setup Node.js v18
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '18'
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Build project
26+
run: npm run build
27+
28+
- name: Deploy to GitHub Pages
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./dist

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Built with the [**typescript phaser-project-template**](https://github.com/yande
99

1010
## Play
1111

12-
[Play the game](https://s3.eu-central-1.amazonaws.com/phaser3-typescript/platformer-example/index.html) (Add it to the homescreen to test the PWA functionality)
12+
[Play the game](https://yandeu.github.io/phaser3-typescript-platformer-example/) (Add it to the homescreen to test the PWA functionality)
1313

14-
[![phaser3-typescript-platformer](screenshots/nexus6-640x360.png)](https://s3.eu-central-1.amazonaws.com/phaser3-typescript/platformer-example/index.html)
14+
[![phaser3-typescript-platformer](screenshots/nexus6-640x360.png)](https://yandeu.github.io/phaser3-typescript-platformer-example/)
1515

1616
## How To Use
1717

0 commit comments

Comments
 (0)