Skip to content

Commit

Permalink
feat: add deploy to digital ocean
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldan committed Aug 6, 2024
1 parent ae304ca commit 4f44330
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -25,4 +23,10 @@ jobs:
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose
run: cargo test --verbose

- name: Deploy to DigitalOcean
uses: digitalocean/app_action/deploy@v2
with:
app_name: tryrust-org
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

0 comments on commit 4f44330

Please sign in to comment.