From 391539653c69c2b6a95be7fb5cb5c7f559975643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Sat, 23 Nov 2024 20:56:02 +0100 Subject: [PATCH] . --- .github/workflows/release.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cb42e2..29b6730 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,7 @@ on: jobs: release: runs-on: ubuntu-latest + environment: morska steps: # Step 2: Download build artifacts from another workflow (e.g., build pipeline) - name: Download Frontend Artifacts @@ -16,11 +17,17 @@ jobs: with: run-id: ${{ github.event.inputs.run-id }} - # Step 5: Set up SSH agent with the private key - - name: Setup SSH - uses: webfactory/ssh-agent@v0.5.4 + + - name: Copy artifacts into server + uses: appleboy/scp-action@v0.1.7 with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + host: "crm.bim-it.pl" + username: "mz" + key: ${{ secrets.SSH_KEY }} + port: 22 + source: "*" + target: "/home/mz/github" + # Step 3: Replace tokens in files with GitHub secrets