Skip to content

Commit

Permalink
ci: mv artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
busla committed Feb 21, 2021
1 parent c93f594 commit 6c5ac69
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
- name: Unzip build
# greining-1/monorepo-demo/artifacts/analysis_1_build/
run: |
unzip ${{needs.setup.outputs.artifact}}
unzip ${{needs.setup.outputs.artifact}} && mv ${{ github.workspace }}/artifacts/* ${{ github.workspace }}/
rm ${{needs.setup.outputs.artifact}}
ls -al .
#----------------------------------------------
Expand All @@ -202,7 +202,7 @@ jobs:
password: ${{ secrets.HI_PASSWORD }}
port: 22
rm: true
source: artifacts/foundation_build
source: foundation_build
target: ".public_html/staging/undirbuningur_stae/${{ needs.setup.outputs.branch_name }}"
- name: Deploy analysis-1 docs
id: deploy_analysis_1_docs
Expand All @@ -213,7 +213,7 @@ jobs:
password: ${{ secrets.HI_PASSWORD }}
port: 22
rm: true
source: artifacts/analysis_1_build
source: analysis_1_build
target: ".public_html/staging/greining-1/${{ needs.setup.outputs.branch_name }}"
deploy-production-branch:
if: needs.setup.outputs.branch_name == 'master'
Expand All @@ -232,9 +232,11 @@ jobs:
# Unzip to comply with scp-action
#----------------------------------------------
- name: Unzip build
# greining-1/monorepo-demo/artifacts/analysis_1_build/
run: |
unzip ${{needs.setup.outputs.artifact}}
unzip ${{needs.setup.outputs.artifact}} && mv ${{ github.workspace }}/artifacts/* ${{ github.workspace }}/
rm ${{needs.setup.outputs.artifact}}
ls -al .
- name: Deploy foundation to prod
id: deploy_foundation_prod
uses: appleboy/scp-action@master
Expand All @@ -244,7 +246,7 @@ jobs:
password: ${{ secrets.HI_PASSWORD }}
port: 22
rm: true
source: artifacts/foundation
source: foundation
target: ".public_html/production/undirbuningur_stae/${{ needs.setup.outputs.branch_name }}"
- name: Deploy analysis-1 to prod
id: deploy_analysis_1_prod
Expand All @@ -255,5 +257,5 @@ jobs:
password: ${{ secrets.HI_PASSWORD }}
port: 22
rm: true
source: artifacts/analysis_1_build
source: analysis_1_build
target: ".public_html/staging/greining-1/${{ needs.setup.outputs.branch_name }}"

0 comments on commit 6c5ac69

Please sign in to comment.