Skip to content

Commit

Permalink
build: use ssh key instead for CI access
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Sep 5, 2023
1 parent 8767392 commit 1df130f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}

- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down Expand Up @@ -61,4 +63,4 @@ jobs:
git config --local user.name "GitHub Action"
git add public/
git commit -m "Add build files" || echo "No changes to commit"
git push https://${{ secrets.REPO_PAT }}@github.com/${{ github.repository }}.git
git push origin HEAD:${{ github.ref }}

0 comments on commit 1df130f

Please sign in to comment.