Skip to content

Commit

Permalink
feat: deploy service to shuttle.dev (#41)
Browse files Browse the repository at this point in the history
* add shuttle

* update readme

* update readme

* CI: add deploy step
  • Loading branch information
neo773 authored Nov 29, 2024
1 parent 3c84d6f commit cc34b23
Show file tree
Hide file tree
Showing 8 changed files with 2,026 additions and 399 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ on:
- opened
- synchronize
- reopened
- closed
branches:
- main
push:
Expand All @@ -38,6 +39,7 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: arduino/setup-protoc@v3
- name: Setup Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -49,3 +51,15 @@ jobs:
run: cargo +nightly fmt --check
- name: Cargo Clippy
run: cargo +nightly clippy --all-features --workspace -- -D warnings
deploy:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
name: Deploy to Shuttle
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: shuttle-hq/deploy-action/deploy-action@vmain
with:
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
target/
.idea/
.direnv
/target
.shuttle*
Secrets*.toml
Loading

0 comments on commit cc34b23

Please sign in to comment.