From 323d45fe4b7efd7099d87baba1904960dcca3202 Mon Sep 17 00:00:00 2001 From: Efra Espada Date: Sun, 1 Dec 2024 22:06:54 +0100 Subject: [PATCH] feature-27-deploy-key-to-compile: switch to SSH origin --- .github/workflows/prepare_files.yml | 7 +++++-- .github/workflows/prepare_release.yml | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prepare_files.yml b/.github/workflows/prepare_files.yml index 568b45cd9..2488442a6 100644 --- a/.github/workflows/prepare_files.yml +++ b/.github/workflows/prepare_files.yml @@ -10,10 +10,13 @@ on: jobs: prepare-files: name: Update compiled files - runs-on: ubuntu-latest + runs-on: [ self-hosted, Linux ] steps: - uses: actions/checkout@v4 + - name: Switch to SSH + run: git remote set-url origin git@github.com:landamessenger/git-board-flow.git + - name: Set up Node.js 20 uses: actions/setup-node@v4 with: @@ -25,7 +28,7 @@ jobs: - name: Build Project run: npm run build - - name: Commit updated package.json and dist directory + - name: Commit updated dist directory uses: EndBug/add-and-commit@v9 with: add: './dist/' diff --git a/.github/workflows/prepare_release.yml b/.github/workflows/prepare_release.yml index 8daaa50a7..c40d6ab44 100644 --- a/.github/workflows/prepare_release.yml +++ b/.github/workflows/prepare_release.yml @@ -9,10 +9,13 @@ jobs: prepare-release: if: ${{ github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master' }} name: Update version and compile files - runs-on: ubuntu-latest + runs-on: [ self-hosted, Linux ] steps: - uses: actions/checkout@v4 + - name: Switch to SSH + run: git remote set-url origin git@github.com:landamessenger/git-board-flow.git + - name: Set up Node.js 20 uses: actions/setup-node@v4 with: