Skip to content

ci fix

ci fix #19

Workflow file for this run

name: Deploy to Remote Server
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Set up SSH and Deploy Changes
uses: appleboy/[email protected]
with:
host: ec2-3-87-142-202.compute-1.amazonaws.com
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
port: 22
script: |
cd fossil-headers-db
git fetch origin main
git reset --hard origin/main
cargo build --release
sudo mv target/release/fossil_headers_db /usr/local/bin/fossil_headers_db
sudo systemctl daemon-reload
sudo systemctl restart fossil_headers_db
sudo systemctl status fossil_headers_db --no-pager