Skip to content

Commit

Permalink
finalize: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Oluwatunmise-olat committed Oct 28, 2023
1 parent ee977f7 commit 3e9fea9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ jobs:
run: echo ::set-output name=COMMIT_HASH::${{ github.sha }}

- name: Build Artifact
run: GOARCH=amd64 go build -v --tags v-${{ steps.get_commit_hash.outputs.COMMIT_HASH }} -o app

- name: Set up SSH Agent
run: |
eval $(ssh-agent)
ssh-add - <<< "${{ secrets.KEY }}"
run: GOARCH=amd64 go build -v --tags v-${{ steps.get_commit_hash.outputs.COMMIT_HASH }} -o sally

- name: Deploy Artifact to Server
uses: appleboy/scp-action@master
Expand All @@ -38,7 +33,7 @@ jobs:
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
source: "app"
source: "sally"
target: "~/app"

- name: Restart Application
Expand Down
4 changes: 2 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e9fea9

Please sign in to comment.