From 276e186a98a00f67dbbc9c07cf163ae65e40acd8 Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 20 Oct 2024 09:40:10 -0400 Subject: [PATCH] use ssh deploy keys --- .forgejo/workflows/publish.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 5b1b8e5..8f0735a 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -10,6 +10,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Set up SSH key + uses: actions/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.DEPLOY_KEY }} - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -17,8 +21,8 @@ jobs: - name: Configure Git run: | git config --global user.name "${GITHUB_ACTOR}" - git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com" - git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@www.coastalcommits.com/${{ github.repository }} + git config --global user.email "${GITHUB_ACTOR}@noreply@coastalcommits.com" + git remote set-url origin git@www.coastalcommits.com:${{ github.repository }} - name: Install dependencies run: npm ci - name: Publish plugins to Release branch