try to fix dev deployment
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index e577477..3dfc905 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -7,19 +7,29 @@
branches: [ dev ]
jobs:
- deploy:
+ dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: '12.x'
- - run: |
+
+ - name: Configure git
+ env:
+ SSH_AUTH_SOCK: /tmp/ssh_agent.sock
+ run: |
+ mkdir -p ~/.ssh
+ ssh-keyscan github.com >> ~/.ssh/known_hosts
+ ssh-agent -a $SSH_AUTH_SOCK > /dev/null
+ ssh-add - <<< "${{ secrets.DTPS_DEV_PRIVATE_KEY }}"
git config user.name github-actions
git config user.email [email protected]
- git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- - run: npm ci
- - run: npm run dev --if-present
+
+ - name: Run npm scripts
+ run: npm ci
+ run: npm run dev --if-present