21 lines
472 B
YAML
21 lines
472 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [staging]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Pull latest code
|
|
run: |
|
|
cd /opt/church-website/repo
|
|
git fetch origin staging
|
|
git reset --hard origin/staging
|
|
|
|
- name: Deploy staging environment
|
|
run: /opt/church-website/scripts/deploy.sh staging 3001
|
|
|
|
- name: Deploy test environment
|
|
run: /opt/church-website/scripts/deploy.sh test 3002
|