Skip to content

Commit 6288e51

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

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,25 @@ jobs:
127127
# uses: actions/download-artifact@v3
128128
# with:
129129
# name:
130+
- name: Setup Node
131+
uses: actions/setup-node@v3
132+
with:
133+
node-version: 14.21.3
134+
cache: 'npm'
130135
- uses: webfactory/ssh-agent@v0.7.0
131136
with:
132137
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
133-
env:
134-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
138+
- name: Add Know Hosts
139+
run: |
140+
ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts
141+
shell: bash
142+
- name: Clean install on CI
143+
run: npm ci
136144

137145
- name: Deploy to GitHub Pages
138146
uses: peaceiris/actions-gh-pages@v3
147+
env:
148+
GH_TOKEN: eclass:${{ secrets.GITHUB_TOKEN }}
139149
with:
140-
github_token: eclass:${{ secrets.GITHUB_TOKEN }}
150+
GH_TOKEN: eclass:${{ secrets.GITHUB_TOKEN }}
141151
publish_dir: ./dist

0 commit comments

Comments
 (0)