From 137e876b71a43bf8ba7819b86bdd6cd77e0f532a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fla=CC=81vio=20Silva?= Date: Thu, 2 May 2024 11:23:49 +0100 Subject: [PATCH] fix: deploy --- .github/workflows/GithubPagesDeploy.yml | 26 +------------------------ src/Scenes/Index.js | 24 ++++------------------- 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/.github/workflows/GithubPagesDeploy.yml b/.github/workflows/GithubPagesDeploy.yml index b8d6f07..bda5eb7 100644 --- a/.github/workflows/GithubPagesDeploy.yml +++ b/.github/workflows/GithubPagesDeploy.yml @@ -1,20 +1,14 @@ -# Tutorial: https://tigeroakes.com/posts/til-github-pages-two-branches-github-actions/ - name: Github Pages Deploy on: push: branches: - master - - "V1-FE-Vanilla-Site" - "V2-Phaser-Game" - - "PDF" pull_request: branches: - master - - "V1-FE-Vanilla-Site" - "V2-Phaser-Game" - - "PDF" jobs: build: @@ -31,7 +25,7 @@ jobs: - name: Install Node.js uses: actions/setup-node@v2-beta with: - node-version: 17 + node-version: 20 - name: Install npm dependencies run: npm ci @@ -39,24 +33,6 @@ jobs: - name: Build # Output build files in `dist` folder run: npm run build - # ------- V1-FE-Vanilla-Site -------- - - name: Checkout the `V1-FE-Vanilla-Site` branch - uses: actions/checkout@v2 - with: - ref: V1-FE-Vanilla-Site - # Put the checked out files inside the `dist/V1` folder - path: dist/V1 - clean: false - - # ------- PDF -------- - - name: Checkout the `PDF` branch - uses: actions/checkout@v2 - with: - ref: PDF - # Put the checked out files inside the `dist/PDF` folder - path: dist/PDF - clean: false - # ------- gh-pages (deploy) -------- - name: Deploy in gh-pages uses: JamesIves/github-pages-deploy-action@4.1.1 diff --git a/src/Scenes/Index.js b/src/Scenes/Index.js index e75d809..c9f3c68 100644 --- a/src/Scenes/Index.js +++ b/src/Scenes/Index.js @@ -1,8 +1,8 @@ import { DOM } from "201flaviosilva-utils"; +import StarsBackground from "../Components/StarsBackground"; import GlobalConfigs from "../Configs"; import { TextStyle } from "../Theme"; -import StarsBackground from "../Components/StarsBackground"; export default class Index extends Phaser.Scene { constructor() { @@ -32,9 +32,9 @@ export default class Index extends Phaser.Scene { } create() { - const { width, height, middleWidth, middleHeight } = GlobalConfigs.screen; + const { middleWidth, middleHeight } = GlobalConfigs.screen; - const margin = 75; + const margin = 36; // Background const background = new StarsBackground(this); @@ -47,14 +47,6 @@ export default class Index extends Phaser.Scene { action: () => this.scene.start("Start"), }); - // V1 - this.createText({ - x: middleWidth, - y: middleHeight, - text: "Vetus", - action: () => this.openV1(), - }); - // PDF this.createText({ x: middleWidth, @@ -64,16 +56,8 @@ export default class Index extends Phaser.Scene { }); } - openV1() { - const url = "/V1/index.html"; - const s = window.open(url, "_blank"); - - if (s && s.focus) s.focus(); - else if (!s) window.location.href = url; - } - openPDF() { - const url = "/PDF/indexEN.html"; + const url = "https://github.com/201flaviosilva/201flaviosilva.github.io/blob/PDF/FlavioSilva.pdf"; const s = window.open(url, "_blank"); if (s && s.focus) s.focus();