Skip to content

Commit cecbc47

Browse files
authored
Merge pull request #13 from Kaister300/github-pages
GitHub Pages Cont.
2 parents 0684b93 + 9fdec82 commit cecbc47

File tree

4 files changed

+187
-1138
lines changed

4 files changed

+187
-1138
lines changed

.github/workflows/deploy-gh-pages.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ name: Deploy static content to GH Pages
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: ["main"]
7+
paths:
8+
- 'project/**'
9+
branches:
10+
- "main"
811

912
# Allows you to run this workflow manually from the Actions tab
1013
workflow_dispatch:

README.md

+4-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# BTD6ParagonCalculator
22

3-
[![Deploy on push](https://github.com/Kaister300/BTD6ParagonCalculator/actions/workflows/on-push.yaml/badge.svg)](https://github.com/Kaister300/BTD6ParagonCalculator/actions/workflows/on-push.yaml)
3+
[![Deploy static content to GH Pages](https://github.com/Kaister300/BTD6ParagonCalculator/actions/workflows/deploy-gh-pages.yaml/badge.svg)](https://github.com/Kaister300/BTD6ParagonCalculator/actions/workflows/deploy-gh-pages.yaml)
44

55
## Overview
66
A simple web application to caclulate the approximate power of a BTD6 paragon based on in game factors.
77
The webpage is situated in the project directory under webpage. An express server, `app.mjs`, has been included to run the page locally.
88

99
## Webpage Location
10-
The webpage is being hosted through Cloudflare at the following address:
10+
The webpage is being hosted through Github Pages at the following address:
1111

12-
https://btd6paragoncalculator.pages.dev/
12+
https://kaister300.github.io/BTD6ParagonCalculator/
1313

1414

15-
## Getting Started - Node
15+
## Getting Started
1616
Node.js will only be used to run the express server.
1717

1818
```bash
@@ -31,18 +31,6 @@ OR
3131
node project/app.mjs
3232
```
3333

34-
## Getting Started - Python
35-
Use the `requirements.txt` in the `project` folder to download the necessary dependencies.
36-
37-
```bash
38-
pip install -r project/requirements.txt
39-
```
40-
41-
This project can also host a local server using the Flask package. Using the following command will start the server:
42-
43-
```bash
44-
python3 project/server.py
45-
```
4634

4735
## Building Site
4836
Building the website requires Python3 and the `python-dotenv` package from pip. The build script can be run using:

0 commit comments

Comments
 (0)