Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ametel01 committed Oct 17, 2024
1 parent 1246156 commit 296fd99
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout the repository
uses: actions/checkout@v4
uses: actions/checkout@v3

- name: Set up SSH and Deploy Changes
uses: appleboy/[email protected]
Expand All @@ -22,13 +22,13 @@ jobs:
passphrase: ${{ secrets.SSH_PASSPHRASE }}
port: 22
script: |
# Install Rust if not already installed
if ! command -v cargo &> /dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
fi
# Ensure Rust installed via rustup is used
export PATH="$HOME/.cargo/bin:$PATH"
# Navigate to project directory and pull latest changes
# Verify Cargo is available
cargo --version || { echo "Cargo not found"; exit 1; }
# Navigate to the project directory
cd fossil-headers-db
git fetch origin main
git reset --hard origin/main
Expand Down

0 comments on commit 296fd99

Please sign in to comment.