woutervermeer-patch-5 #11
@@ -3,7 +3,6 @@ run-name: ${{ gitea.actor }}
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- pre-prod
|
||||
pull_request:
|
||||
|
||||
|
||||
@@ -2,14 +2,13 @@ name: Deploy to production
|
||||
run-name: deploy-${{ gitea.actor }}
|
||||
|
||||
on:
|
||||
merge:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tests # require tests to pass
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -24,7 +23,7 @@ jobs:
|
||||
- name: Deploy
|
||||
run: |
|
||||
ssh -i ~/.ssh/id_rsa ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'EOF'
|
||||
cd /path/to/Quatsh-Website
|
||||
cd ~/Quatsh-Website
|
||||
|
||||
echo "Pulling latest code..."
|
||||
git pull origin main
|
||||
|
||||
Reference in New Issue
Block a user