This commit is contained in:
Michał Zieliński
2024-11-23 20:56:02 +01:00
parent ba19b0f1d9
commit 391539653c

View File

@@ -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