Skip to content

Commit

Permalink
use the right branch 🙄
Browse files Browse the repository at this point in the history
  • Loading branch information
bananahampster committed Jan 16, 2024
1 parent 5dd8180 commit d3f48f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ jobs:
steps:
- name: deploy script
uses: appleboy/ssh-action@master
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
with:
host: ${{ secrets.BETA_SERVER_NAME }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.BETA_DEPLOY_KEY }}
script: |
cd ~/hampalyzer
git reset --hard origin/master
git pull origin master
git reset --hard HEAD
git pull
git checkout $BRANCH_NAME
npm install
tsc
cp -rfL ~/hampalyzer/frontend/* -t /var/www/beta.hampalyzer.com/html
Expand Down

0 comments on commit d3f48f4

Please sign in to comment.