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