Skip to content

Commit c9daf20

Browse files
ErioldDaniel Montoya
andauthored
feat(update): change yml for deploy (#571)
Co-authored-by: Daniel Montoya <daniel.montoya@eclass.cl>
1 parent 24f937a commit c9daf20

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/nodejs.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ jobs:
7474
run: |
7575
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
7676
shell: bash
77-
- name: Deploy to GitHub Pages
78-
uses: peaceiris/actions-gh-pages/v3
79-
with:
77+
- name: Deploy to GH Pages with vite server
78+
env:
8079
GH_TOKEN: eclass:${{ secrets.GITHUB_TOKEN }}
81-
DOCUMENTATION: ${{secrets.VITE_REACT_DEPLOY_DOCUMENTATION}}
82-
publish_dir: ./dist
80+
run: npm run deploy
8381

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"lint:check": "eslint 'src/**/*.{ts,tsx,mdx}'",
4343
"ts-compile-check": "tsc -p tsconfig.json",
4444
"prepare": "ts-patch install -s && node ./prepare.js",
45-
"preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions"
45+
"preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
46+
"deploy": "gh-pages -d build"
4647
},
4748
"publishConfig": {
4849
"access": "public"

0 commit comments

Comments
 (0)