Skip to content

add better readme (#63) #81

add better readme (#63)

add better readme (#63) #81

name: Deploy deep-sea-stories
on:
push:
branches: ["main"]
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy"
required: true
default: "main"
type: string
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch || github.ref }}
- name: Deploy
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.VM_HOST }}
username: ${{ secrets.VM_USERNAME }}
key: ${{ secrets.VM_SSH_KEY }}
script: |
cd ~/examples/deep-sea-stories
git fetch --all
git switch ${{ inputs.branch || 'main' }}
git pull
umask 077
cat > .env << 'EOF'
FISHJAM_ID=${{ secrets.FISHJAM_ID }}
FISHJAM_MANAGEMENT_TOKEN=${{ secrets.FISHJAM_MANAGEMENT_TOKEN }}
ELEVENLABS_API_KEY=${{ secrets.ELEVENLABS_API_KEY }}
GEMINI_API_KEY=${{ secrets.GEMINI_API_KEY }}
EOF
docker compose down
docker compose up -d --build