Centralize deploy_path, environment and artifact name/path as workflow variables
Co-authored-by: Junie <junie@jetbrains.com>
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: ${{ inputs.artifact_name }}
|
||||
path: dist
|
||||
path: ${{ inputs.artifact_name }}
|
||||
|
||||
# Uploadt de inhoud van dist/ via SCP (over SSH) naar de webroot van de
|
||||
# test-omgeving (een Raspberry Pi achter een andere Raspberry Pi met
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
port: ${{ secrets.PI_MAIN_PORT }}
|
||||
username: ${{ secrets.PI_MAIN_USERNAME }}
|
||||
password: ${{ secrets.PI_MAIN_PASSWORD }}
|
||||
source: "dist/*"
|
||||
source: "${{ inputs.artifact_name }}/*"
|
||||
target: ${{ inputs.deploy_path }}
|
||||
strip_components: 1
|
||||
overwrite: true
|
||||
|
||||
Reference in New Issue
Block a user