Skip to content

Commit

Permalink
updated deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
asleepace committed Jan 15, 2025
1 parent 6acf346 commit 1398217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ jobs:
# test:
# ...
deploy:
name: "Deploy to staging"
name: 'Deploy to production'
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.event.label == 'deploy'
# needs: test
steps:
- name: Configure SSH
Expand All @@ -26,5 +26,5 @@ jobs:
SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
SSH_HOST: ${{ secrets.STAGING_SSH_HOST }}

- name: Stop the server
run: ssh staging 'cd asleepace.com && yarn deploy'
- name: Run deploy script
run: ssh staging '~/asleepace.com/scripts/deploy.sh'

0 comments on commit 1398217

Please sign in to comment.