diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 52bf63b..413e43e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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