.
This commit is contained in:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -9,6 +9,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: morska
|
||||||
steps:
|
steps:
|
||||||
# Step 2: Download build artifacts from another workflow (e.g., build pipeline)
|
# Step 2: Download build artifacts from another workflow (e.g., build pipeline)
|
||||||
- name: Download Frontend Artifacts
|
- name: Download Frontend Artifacts
|
||||||
@@ -16,11 +17,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
run-id: ${{ github.event.inputs.run-id }}
|
run-id: ${{ github.event.inputs.run-id }}
|
||||||
|
|
||||||
# Step 5: Set up SSH agent with the private key
|
|
||||||
- name: Setup SSH
|
- name: Copy artifacts into server
|
||||||
uses: webfactory/ssh-agent@v0.5.4
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
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
|
# Step 3: Replace tokens in files with GitHub secrets
|
||||||
|
|||||||
Reference in New Issue
Block a user