Skip to content

Commit 5564ca9

Browse files
ErioldDaniel Montoya
andauthored
Documentation (#574)
* feat(yml): configuration jobs to deploy gh-pages * feat(route): path eclass * feat(yml): configuration yml to production --------- Co-authored-by: Daniel Montoya <daniel.montoya@eclass.cl>
1 parent 5bb7599 commit 5564ca9

File tree

3 files changed

+17
-26
lines changed

3 files changed

+17
-26
lines changed

.github/workflows/nodejs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ jobs:
5151
- name: Clean install on CI
5252
run: npm ci
5353
- name: Build library
54-
env:
55-
VITE_REACT_DEPLOY_DOCUMENTATION: ${{secrets.VITE_REACT_DEPLOY_DOCUMENTATION}}
5654
run: npm run build
5755
- name: Release version
5856
run: npx semantic-release@18
@@ -129,6 +127,12 @@ jobs:
129127
# uses: actions/download-artifact@v3
130128
# with:
131129
# name:
130+
- uses: webfactory/ssh-agent@v0.7.0
131+
with:
132+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
133+
env:
134+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
132136

133137
- name: Deploy to GitHub Pages
134138
uses: peaceiris/actions-gh-pages@v3

package-lock.json

Lines changed: 10 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const buildEnv = process.env.VITE_REACT_DEPLOY_DOCUMENTATION ?? 'PRODUCTION'
1313
if (buildEnv === 'DOCUMENTATION') {
1414
myDefineConfig = {
1515
plugins: [react(), tsconfigPaths()],
16+
base: '/@eclass-ui-kit/',
1617
build: {
1718
sourcemap: true,
1819
},

0 commit comments

Comments
 (0)