Skip to content

Commit b4be176

Browse files
committed
wf and readme updated
1 parent 3193e43 commit b4be176

File tree

4 files changed

+121
-153
lines changed

4 files changed

+121
-153
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
name: "Deploy Static Files to Server"
2-
3-
on:
4-
workflow_dispatch:
5-
6-
push:
7-
branches:
8-
- main
9-
10-
permissions:
11-
contents: write
12-
13-
jobs:
14-
build:
15-
runs-on: ubuntu-latest
16-
environment:
17-
name: FTP
18-
steps:
19-
- name: "Checking Out"
20-
uses: actions/[email protected]
21-
22-
- name: Get yarn cache directory path
23-
id: yarn-cache-dir-path
24-
run: |
25-
echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
26-
27-
- name: "Caching yarn"
28-
uses: actions/[email protected]
29-
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
30-
with:
31-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
32-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33-
restore-keys: |
34-
${{ runner.os }}-yarn-
35-
36-
- name: "Caching build"
37-
uses: actions/[email protected]
38-
with:
39-
path: |
40-
~/.npm
41-
${{ github.workspace }}/.next/cache
42-
# Generate a new cache whenever packages or source files change.
43-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
44-
# If source files changed but packages didn't, rebuild from a prior cache.
45-
restore-keys: |
46-
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
47-
48-
- name: Setting Up Node.js
49-
uses: actions/[email protected]
50-
with:
51-
node-version: "18"
52-
cache: "yarn"
53-
54-
- name: Installing dependencies
55-
run: yarn
56-
57-
- name: Generating Static Files
58-
run: yarn build
59-
60-
- name: Deploy to Server
61-
uses: SamKirkland/[email protected]
62-
with:
63-
server: ${{ secrets.FTP_SERVER }}
64-
port: ${{ secrets.FTP_PORT }}
65-
username: ${{ secrets.FTP_UNAME }}
66-
password: ${{ secrets.FTP_PASS }}
67-
protocol: ${{ secrets.FTP_PROTOCOL }}
68-
local-dir: ./opensource/enhancing-seo-with-hawk-js/
69-
server-dir: opensource/enhancing-seo-with-hawk-js/
70-
security: strict
1+
name: "Deploy Static Files to Server"
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- main
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: FTP
18+
steps:
19+
- name: "Checking Out"
20+
uses: actions/[email protected]
21+
22+
- name: Get yarn cache directory path
23+
id: yarn-cache-dir-path
24+
run: |
25+
echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
26+
27+
- name: "Caching yarn"
28+
uses: actions/[email protected]
29+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
30+
with:
31+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
32+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-yarn-
35+
36+
- name: "Caching build"
37+
uses: actions/[email protected]
38+
with:
39+
path: |
40+
~/.npm
41+
${{ github.workspace }}/.next/cache
42+
# Generate a new cache whenever packages or source files change.
43+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
44+
# If source files changed but packages didn't, rebuild from a prior cache.
45+
restore-keys: |
46+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
47+
48+
- name: Setting Up Node.js
49+
uses: actions/[email protected]
50+
with:
51+
node-version: "18"
52+
cache: "yarn"
53+
54+
- name: Installing dependencies
55+
run: yarn
56+
57+
- name: Generating Static Files
58+
run: yarn build
59+
60+
- name: Deploy to Server
61+
uses: SamKirkland/[email protected]
62+
with:
63+
server: ${{ secrets.FTP_SERVER }}
64+
port: ${{ secrets.FTP_PORT }}
65+
username: ${{ secrets.FTP_UNAME }}
66+
password: ${{ secrets.FTP_PASS }}
67+
protocol: ${{ secrets.FTP_PROTOCOL }}
68+
local-dir: ./opensource/enhancing-seo-with-hawk-js/
69+
server-dir: opensource/enhancing-seo-with-hawk-js/
70+
security: strict

.github/workflows/lines-of-code.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,62 +40,56 @@ Documentation work done by [Darsan](https://darsan.in/).
4040

4141
<p align="center">
4242
<a href="https://cresteem.com/">
43-
<img src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/branding-gh.png" alt="Cresteem Logo">
43+
<img src="https://darsan.in/readme-src/branding-gh.png" alt="Cresteem Logo">
4444
</a>
4545
</p>
4646

47-
<p align="center">
48-
49-
<span>
50-
<a href="https://www.instagram.com/cresteem/"><img width='45px' height='45px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/insta.png" alt="Cresteem at Instagram"></a>
51-
</span>
47+
---
5248

53-
<span>
54-
<img width='20px' height='20px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/gap.png" alt="place holder image">
55-
</span>
49+
<p align="center">
5650

5751
<span>
58-
<a href="https://www.linkedin.com/company/cresteem/"><img width='45px' height='45px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/linkedin.png" alt="Cresteem at Linkedin"></a>
52+
<a href="https://www.instagram.com/cresteem/"><img width='45px' height='45px' src="https://darsan.in/readme-src/footer-icons/insta.png" alt="Cresteem at Instagram"></a>
5953
</span>
6054

6155
<span>
62-
<img width='20px' height='20px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/gap.png" alt="place holder image">
56+
<img width='20px' height='20px' src="https://darsan.in/readme-src/footer-icons/gap.png" alt="place holder image">
6357
</span>
6458

6559
<span>
66-
<a href="https://x.com/cresteem"><img width='45px' height='45px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/x.png" alt="Cresteem at Twitter / X"></a>
60+
<a href="https://www.linkedin.com/company/cresteem/"><img width='45px' height='45px' src="https://darsan.in/readme-src/footer-icons/linkedin.png" alt="Cresteem at Linkedin"></a>
6761
</span>
6862

6963
<span>
70-
<img width='20px' height='20px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/gap.png" alt="place holder image">
64+
<img width='20px' height='20px' src="https://darsan.in/readme-src/footer-icons/gap.png" alt="place holder image">
7165
</span>
7266

7367
<span>
74-
<a href="https://www.youtube.com/@Cresteem"><img width='45px' height='45px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/youtube.png" alt="Cresteem at Youtube"></a>
68+
<a href="https://x.com/cresteem"><img width='45px' height='45px' src="https://darsan.in/readme-src/footer-icons/x.png" alt="Cresteem at Twitter / X"></a>
7569
</span>
7670

7771
<span>
78-
<img width='20px' height='20px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/gap.png" alt="place holder image">
72+
<img width='20px' height='20px' src="https://darsan.in/readme-src/footer-icons/gap.png" alt="place holder image">
7973
</span>
8074

8175
<span>
82-
<a href="https://github.com/cresteem"><img width='45px' height='45px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/github.png" alt="Cresteem at Github"></a>
76+
<a href="https://www.youtube.com/@Cresteem"><img width='45px' height='45px' src="https://darsan.in/readme-src/footer-icons/youtube.png" alt="Cresteem at Youtube"></a>
8377
</span>
8478

8579
<span>
86-
<img width='20px' height='20px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/gap.png" alt="place holder image">
80+
<img width='20px' height='20px' src="https://darsan.in/readme-src/footer-icons/gap.png" alt="place holder image">
8781
</span>
8882

8983
<span>
90-
<a href="https://huggingface.co/cresteem"><img width='45px' height='45px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/hf.png" alt="Cresteem at Huggingface"></a>
84+
<a href="https://github.com/cresteem"><img width='45px' height='45px' src="https://darsan.in/readme-src/footer-icons/github.png" alt="Cresteem at Github"></a>
9185
</span>
9286

9387
<span>
94-
<img width='20px' height='20px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/gap.png" alt="place holder image">
88+
<img width='20px' height='20px' src="https://darsan.in/readme-src/footer-icons/gap.png" alt="place holder image">
9589
</span>
9690

9791
<span>
98-
<a href="https://cresteem.com/"><img width='45px' height='45px' src="https://raw.githubusercontent.com/darsan-in/.github/main/brand/footer-icons/website.png" alt="Cresteem Website"></a>
92+
<a href="https://cresteem.com/"><img width='45px' height='45px' src="https://darsan.in/readme-src/footer-icons/website.png" alt="Cresteem Website"></a>
9993
</span>
10094

10195
</p>

package.json

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
{
2-
"name": "hawk-js-docsite",
3-
"version": "0.2b",
4-
"description": "Hawk JS API References",
5-
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"start": "next start"
9-
},
10-
"repository": {
11-
"type": "git",
12-
"url": "git+https://github.com/cresteem/Hawk-JS-DocSite.git"
13-
},
14-
"author": "CRESTEEM <[email protected]>",
15-
"maintainers": [
16-
"CRESTEEM <[email protected]>",
17-
"DARSAN <[email protected]>"
18-
],
19-
"license": "GPL-3.0-only",
20-
"bugs": {
21-
"url": "https://github.com/cresteem/Hawk-JS-DocSite/issues"
22-
},
23-
"homepage": "https://cresteem.com/opensource/hawk-js",
24-
"devDependencies": {
25-
"@types/node": "latest",
26-
"next": "latest",
27-
"nextra": "latest",
28-
"nextra-theme-docs": "latest",
29-
"react": "latest",
30-
"react-dom": "latest",
31-
"react-icons": "^5.2.0",
32-
"sass": "latest",
33-
"typescript": "latest"
34-
},
35-
"dependencies": {
36-
"favicons": "^7.2.0"
37-
}
2+
"name": "hawk-js-docsite",
3+
"version": "0.2b",
4+
"description": "Hawk JS API References",
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/cresteem/Hawk-JS-DocSite.git"
13+
},
14+
"author": "CRESTEEM <[email protected]>",
15+
"maintainers": [
16+
"CRESTEEM <[email protected]>",
17+
"DARSAN <[email protected]>"
18+
],
19+
"license": "GPL-3.0-only",
20+
"bugs": {
21+
"url": "https://github.com/cresteem/Hawk-JS-DocSite/issues"
22+
},
23+
"homepage": "https://hawkjs.cresteem.com/",
24+
"devDependencies": {
25+
"@types/node": "latest",
26+
"next": "latest",
27+
"nextra": "latest",
28+
"nextra-theme-docs": "latest",
29+
"react": "latest",
30+
"react-dom": "latest",
31+
"react-icons": "^5.2.0",
32+
"sass": "latest",
33+
"typescript": "latest"
34+
},
35+
"dependencies": {
36+
"favicons": "^7.2.0"
37+
},
38+
"keywords": []
3839
}

0 commit comments

Comments
 (0)