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