Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6 from mapachurro/hot-fix-deployment
Browse files Browse the repository at this point in the history
Adding some changes to start the testing deployments
  • Loading branch information
yaseerhee authored Jun 4, 2024
2 parents e1064a9 + 4d995e6 commit f11ad78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GitHub Pages
name: Deploy WEB3-Glossary-Website

on:
workflow_dispatch:
Expand All @@ -15,9 +15,10 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '21'
Expand All @@ -30,10 +31,13 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm run build
- name: Install dependencies
run: npm ci

- name: Deploy
- name: Build project
run: npm run build

- name: Deploy to GP
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"serve": "vite preview",
"test": "vitest",
"test:coverage": "vitest run --coverage --watch=false",
"extract": "i18next-scanner --config i18next-scanner.config.js"
"extract": "i18next-scanner --config i18next-scanner.config.js",
"deploy": "gh-pages -d dist"
},
"eslintConfig": {
"extends": [
Expand Down Expand Up @@ -58,6 +59,7 @@
"react-dom": "^18.3.1",
"serve": "^14.2.0",
"vite": "^5.1.6",
"vitest": "^1.3.1"
"vitest": "^1.3.1",
"gh-pages":"^4.0.0"
}
}

0 comments on commit f11ad78

Please sign in to comment.