Skip to content

Commit

Permalink
Updated: updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ngha-Boris committed Jun 19, 2024
1 parent c104df3 commit b6398cf
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,29 @@ jobs:
- name: Build Project
run: cargo build --release


deploy:
runs-on: self-hosted
needs: build
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Install Dependencies
run: cargo fetch

- name: Build Project
run: cargo build --release

- name: Deploy to Production
run: |
# Add your deployment script/command here
echo "Deploying to production..."

0 comments on commit b6398cf

Please sign in to comment.