diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 539f006..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: CI - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm test \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e5ab0a2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the main branch + push: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + with: + submodules: recursive + + # Runs a single command using the runners shell + - name: Build game + run: | + npm install + npm run build -- --public-url /retroski + # Runs a set of commands using the runners shell + - name: Deploy to GitHub Pages + # You may pin to the exact commit or the version. + # uses: JamesIves/github-pages-deploy-action@164583b9e44b4fc5910e78feb607ea7c98d3c7b9 + uses: retroski@0.0.1 + with: + # This is the branch you wish to deploy to, for example gh-pages or docs. + branch: main + # The folder in your repository that you want to deploy. If your build script compiles into a directory named build you would put it here. Folder paths cannot have a leading / or ./. If you wish to deploy the root directory you can place a . here. + folder: dist + # If you would like to push the contents of the deployment folder into a specific directory on the deployment branch you can specify it here. + target-folder: ./retroski + # If you need to customize the commit message for an integration you can do so. + commit-message: Deploy game \ No newline at end of file diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml deleted file mode 100644 index 964e4c3..0000000 --- a/.github/workflows/static.yml +++ /dev/null @@ -1,43 +0,0 @@ -# Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages - -on: - # Runs on pushes targeting the default branch - push: - branches: ["master"] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -jobs: - # Single deploy job since we're just deploying - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Setup Pages - uses: actions/configure-pages@v4 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - # Upload dist repository - path: 'dist' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 diff --git a/dist/index.html b/dist/index.html index 8aec0e8..dcfee66 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,106 +1,102 @@ - - - - - - - - - Retro Ski - - - - - -
-
- Retro ski -
-
-
-
-
Event setup
-
-
-
Track
-
- -
-
-
-
Skier 1
-
- -
-
-
-
Skier 2
-
- -
-
-
-
Number of races
-
- -
-
- -
-
-
-
-
-
Event manager
-
-
-
Last results
-
-
Race
-
Track
-
-
Gap
-
-
-
-
Actual ranking
-
-
Position
-
Skier
-
Win(s)
-
Time
-
Difference
-
-
-
Next races
-
-
Race
-
Track
-
Skier
-
Actual record
-
-
-
- -
-
-
-
-
-
- -
-
- -
-
-
-
- -
- - - + + + + + + + + Retro Ski + + + + + +
+
+ Retro ski +
+
+
+
+
Event setup
+
+
+
Track
+
+ +
+
+
+
Skier 1
+
+ +
+
+
+
Skier 2
+
+ +
+
+
+
Number of races
+
+ +
+
+ +
+
+
+
+
+
Event manager
+
+
+
Last results
+
+
Race
+
Track
+
+
Gap
+
+
+
+
Actual ranking
+
+
Position
+
Skier
+
Win(s)
+
Time
+
Difference
+
+
+
Next races
+
+
Race
+
Track
+
Skier
+
Actual record
+
+
+
+ +
+
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+ + \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 73afe31..1b4ed0a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,6 @@ { "compilerOptions": { + "baseUrl": "./", "target": "ESNext", "useDefineForClassFields": true, "module": "ESNext", diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..afbf02d --- /dev/null +++ b/vite.config.js @@ -0,0 +1,5 @@ +import { defineConfig } from "vite"; + +export default defineConfig({ + base: "./", +}); \ No newline at end of file