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