Skip to content

Commit

Permalink
Use github.sha in artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjoerussell committed Jan 19, 2024
1 parent a234c26 commit 759c5b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ jobs:
deploy:
runs-on: ubuntu-latest
needs: build
env:
USER_NAME: ${{ secrets.SSH_USER }}
steps:
- uses: actions/checkout@v4
- name: Write SSH Keys
Expand All @@ -58,12 +56,12 @@ jobs:
name: one-night-${{ github.sha }}
- name: Copy build files
run: |
sftp $USER_NAME:${{ secrets.SSH_HOST }} <<< '
sftp ${{ secrets.SSH_USER }}:${{ secrets.SSH_HOST }} <<< '
put one-night.tar
'
- name: Start Server
run: |
ssh $USER_NAME:${{ secrets.SSH_HOST }} <<< '
ssh ${{ secrets.SSH_USER }}:${{ secrets.SSH_HOST }} <<< '
tar -xf one-night.tar
cd server
nohup ./zig-out/bin/zig-server > logs.out &
Expand Down

0 comments on commit 759c5b0

Please sign in to comment.