From a7460f61c8610219031483e68d6d07bb33261593 Mon Sep 17 00:00:00 2001 From: Cornelius Wichering Date: Fri, 24 May 2024 00:30:19 +0200 Subject: [PATCH] ci: lets try a deploy key --- .github/workflows/release.yaml | 8 +++++++- release.config.js | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1ecb114..6567352 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,6 +41,12 @@ jobs: uses: crazy-max/ghaction-upx@v3 with: install-only: true + - name: setup ssh + run: | + mkdir -p ~/.ssh + echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts - name: Install semantic-release and plugins globally run: | npm install -g semantic-release @@ -51,5 +57,5 @@ jobs: - name: Semantic release run: npx semantic-release env: - GITHUB_TOKEN: ${{ secrets.PAT_SECRET }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_USER: ${{ github.actor }} diff --git a/release.config.js b/release.config.js index 4956efb..03f5238 100644 --- a/release.config.js +++ b/release.config.js @@ -64,7 +64,8 @@ const releaseConfig = { ] } ] - ] + ], + "repositoryUrl": "git@github.com:sne11ius/pp.git" } module.exports = releaseConfig