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