From 391c5f497988302c2902832f6e09313d8a2957d4 Mon Sep 17 00:00:00 2001 From: redonkulus Date: Tue, 6 Jul 2021 09:26:23 -0700 Subject: [PATCH] test: with secrets --- .github/workflows/deploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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