Skip to content

Commit

Permalink
ethonline-2023-build artifact name #4
Browse files Browse the repository at this point in the history
  • Loading branch information
utgarda committed Oct 9, 2023
1 parent 4c56e54 commit a9b89e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:

- run: ls -l

- run: ls -l ./profitpals-dist-${{ github.run_id }}
- run: ls -l ./ethonline-2023-build-${{ github.run_id }}

- name: Compress Build Artifact
run: tar -czf profitpals-dist-${{ github.run_id }}.tgz ./profitpals-dist-${{ github.run_id }}/frontend/dist
run: tar -czf ethonline-2023-build-${{ github.run_id }}.tgz ./ethonline-2023-build-${{ github.run_id }}/frontend/dist

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
Expand All @@ -67,6 +67,6 @@ jobs:
known_hosts: ${{ secrets.KNOWN_HOSTS }}

- name: Copy artifact to server
run: scp ./profitpals-dist-${{ github.run_id }}.tgz ${{ secrets.USERNAME }}@${{ secrets.HOST }}:${{ secrets.BUILDS_PATH }}
run: scp ./ethonline-2023-build-${{ github.run_id }}.tgz ${{ secrets.USERNAME }}@${{ secrets.HOST }}:${{ secrets.BUILDS_PATH }}
- name: Restart deployed build
run: ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }} "/home/${{ secrets.USERNAME }}/${{ env.SCRIPT_NAME }} ${{ github.run_id }}"

0 comments on commit a9b89e0

Please sign in to comment.