Skip to content

update:githubaction #22

update:githubaction

update:githubaction #22

Workflow file for this run

name: Deploy to Production
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
passphrase: ${{ secrets.SSH_PASS }}
script: |
cd ./www/book_log_list
git pull origin main
bundle install
RAILS_ENV=production
bundle exec rake db:migrate
puma -C config/puma.rb -e production -d