update episode list format on anime detail page #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Auto Deploy To VPS | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
jobs: | |
deploy-main: | |
if: github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
environment: main | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Deploy to VPS using SSH for main | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
port: 22 | |
username: ${{ secrets.USERNAME }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
script: | | |
cd ~/.apps/zannime | |
git pull | |
git status | |
sudo docker compose -f docker-compose.yaml build | |
sudo docker compose -f docker-compose.yaml up -d | |
deploy-dev: | |
if: github.ref == 'refs/heads/dev' | |
runs-on: ubuntu-latest | |
environment: dev | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Deploy to VPS using SSH for dev | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
port: 22 | |
username: ${{ secrets.USERNAME }} | |
passphrase: ${{ secrets.PASSPHRASE }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
script: | | |
cd ~/.apps/zannime_dev | |
git pull | |
git status | |
sudo docker compose -f docker-compose-dev.yaml build | |
sudo docker compose -f docker-compose-dev.yaml up -d |