test: with secrets

This commit is contained in:
redonkulus 2021-07-06 09:26:23 -07:00
parent e263dfcb1e
commit 391c5f4979

View File

@ -14,14 +14,16 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: 14.x
- run: npm ci
- run: npm run lint
- run: npm test
- run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages
env:
GH_EMAIL: ${{ secrets.GH_EMAIL }}
GH_NAME: ${{ secrets.GH_NAME }}
GIT_USER: ${{ secrets.GH_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USE_SSH: true
run: |
npm ci
npm run deploy