Skip to content

Commit 4020707

Browse files
authored
Merge pull request #7 from Matt443/fix-webiste-update-june-2025
Fix webiste update june 2025
2 parents 98ad410 + 3d0c03c commit 4020707

34 files changed

+1956
-979
lines changed

.env.example.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PORT='enter your port'
1+
PORT = "enter your port";

.github/workflows/publish-docker-hub.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,26 @@ on:
77

88
jobs:
99
build-and-push:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Get code access
14-
uses: actions/checkout@v3
15-
16-
- name: Extract version number
17-
id: extract_version
18-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
19-
20-
- name: Log in to Docker Hub
21-
uses: docker/login-action@v2
22-
with:
23-
username: ${{ secrets.DOCKER_USERNAME }}
24-
password: ${{ secrets.DOCKER_PASSWORD }}
25-
26-
- name: Build Docker image
27-
run: |
28-
docker build -t ${{ secrets.DOCKER_USERNAME }}/f1-api-node:${{ env.RELEASE_VERSION }} .
29-
30-
- name: Push Docker image
31-
run: |
32-
docker push ${{ secrets.DOCKER_USERNAME }}/f1-api-node:${{ env.RELEASE_VERSION }}
10+
runs-on: ubuntu-latest
3311

12+
steps:
13+
- name: Get code access
14+
uses: actions/checkout@v3
15+
16+
- name: Extract version number
17+
id: extract_version
18+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
19+
20+
- name: Log in to Docker Hub
21+
uses: docker/login-action@v2
22+
with:
23+
username: ${{ secrets.DOCKER_USERNAME }}
24+
password: ${{ secrets.DOCKER_PASSWORD }}
25+
26+
- name: Build Docker image
27+
run: |
28+
docker build -t ${{ secrets.DOCKER_USERNAME }}/f1-api-node:${{ env.RELEASE_VERSION }} .
29+
30+
- name: Push Docker image
31+
run: |
32+
docker push ${{ secrets.DOCKER_USERNAME }}/f1-api-node:${{ env.RELEASE_VERSION }}

.github/workflows/publish-ghcr.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: Publish image to GHCR
22

33
on:
4-
release:
5-
types: [created]
4+
release:
5+
types: [created]
66

77
jobs:
8-
build_and_publish:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Get code access
12-
uses: actions/checkout@v3
13-
14-
- name: Set up Docker Buildx
15-
uses: docker/setup-buildx-action@v2
16-
17-
- name: Login to GHCR
18-
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u yashkathe --password-stdin
8+
build_and_publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Get code access
12+
uses: actions/checkout@v3
1913

20-
- name: Extract version number
21-
id: extract_version
22-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v2
2316

24-
- name: Build and push the image
25-
run: |
26-
docker build . --tag ghcr.io/yashkathe/f1-api-node:${{ env.RELEASE_VERSION }}
27-
docker push ghcr.io/yashkathe/f1-api-node:${{ env.RELEASE_VERSION }}
28-
docker tag ghcr.io/yashkathe/f1-api-node:${{ env.RELEASE_VERSION }} ghcr.io/yashkathe/f1-api-node:latest
29-
docker push ghcr.io/yashkathe/f1-api-node:latest
17+
- name: Login to GHCR
18+
run: echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u yashkathe --password-stdin
19+
20+
- name: Extract version number
21+
id: extract_version
22+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
23+
24+
- name: Build and push the image
25+
run: |
26+
docker build . --tag ghcr.io/yashkathe/f1-api-node:${{ env.RELEASE_VERSION }}
27+
docker push ghcr.io/yashkathe/f1-api-node:${{ env.RELEASE_VERSION }}
28+
docker tag ghcr.io/yashkathe/f1-api-node:${{ env.RELEASE_VERSION }} ghcr.io/yashkathe/f1-api-node:latest
29+
docker push ghcr.io/yashkathe/f1-api-node:latest

.github/workflows/publish-npm.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
name: Publish Node.js Package
22

33
on:
4-
release:
5-
types: [created]
4+
release:
5+
types: [created]
66

77
jobs:
8+
publish-npm:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Get code access
12+
uses: actions/checkout@v3
813

9-
publish-npm:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Get code access
13-
uses: actions/checkout@v3
14+
- name: Setup node environment
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16
18+
registry-url: https://registry.npmjs.org/
1419

15-
- name: Setup node environment
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 16
19-
registry-url: https://registry.npmjs.org/
20+
- name: Install dependencies
21+
run: npm ci
2022

21-
- name: Install dependencies
22-
run: npm ci
23+
- name: Build Package
24+
run: npm run build
2325

24-
- name: Build Package
25-
run: npm run build
26-
27-
- name: Publish package
28-
run: npm publish
29-
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- name: Publish package
27+
run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
dist
3-
junk
4-
*log
5-
.env
3+
junk * log.env
4+
5+
src/index.ts
6+
commit.bat

.npmignore

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
src
2-
__tests__
3-
node_modules
4-
junk
5-
readme
6-
jest.config.jest
7-
.prettierrc.json
8-
.vscode
9-
.gitignore
10-
.github
1+
src;
2+
__tests__;
3+
node_modules;
4+
junk;
5+
readme;
6+
jest.config.jest.prettierrc.json.vscode.gitignore.github;

.prettierrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
"singleQuote": false,
66
"bracketSpacing": true,
77
"arrowParens": "always",
8-
"parser": "typescript",
98
"printWidth": 180
10-
}
9+
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"editor.formatOnSave": true,
55
"editor.formatOnPaste": false
66
}
7-
}
7+
}

DISCLAIMER.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<h1 align="center">Disclaimer</h1>
32

43
<div align="center">
@@ -33,12 +32,11 @@ This project has no control on the content it is serving, using copyrighted cont
3332
A browser is a tool, and the maliciousness of the tool is directly based on the user.
3433
</b>
3534

36-
3735
<b> Do not harass the maintainer. </b>
3836

3937
<h2>
4038
Contacting the maintainer
4139
</h2>
4240
<br>
4341

44-
Begin by making a GitHub issue or sending an email to katheyash@yahoo.com
42+
Begin by making a GitHub issue or sending an email to katheyash@yahoo.com

0 commit comments

Comments
 (0)