Skip to content

Commit cc34b23

Browse files
authored
feat: deploy service to shuttle.dev (#41)
* add shuttle * update readme * update readme * CI: add deploy step
1 parent 3c84d6f commit cc34b23

File tree

8 files changed

+2026
-399
lines changed

8 files changed

+2026
-399
lines changed

.github/workflows/ci.yml

+14
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424
- opened
2525
- synchronize
2626
- reopened
27+
- closed
2728
branches:
2829
- main
2930
push:
@@ -38,6 +39,7 @@ jobs:
3839
steps:
3940
- name: Checkout Code
4041
uses: actions/checkout@v4
42+
- uses: arduino/setup-protoc@v3
4143
- name: Setup Rust Toolchain
4244
uses: actions-rust-lang/setup-rust-toolchain@v1
4345
with:
@@ -49,3 +51,15 @@ jobs:
4951
run: cargo +nightly fmt --check
5052
- name: Cargo Clippy
5153
run: cargo +nightly clippy --all-features --workspace -- -D warnings
54+
deploy:
55+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
56+
name: Deploy to Shuttle
57+
runs-on: ubuntu-latest
58+
permissions:
59+
contents: write
60+
steps:
61+
- name: Checkout Code
62+
uses: actions/checkout@v4
63+
- uses: shuttle-hq/deploy-action/deploy-action@vmain
64+
with:
65+
deploy-key: ${{ secrets.SHUTTLE_API_KEY }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
target/
22
.idea/
33
.direnv
4+
/target
5+
.shuttle*
6+
Secrets*.toml

0 commit comments

Comments
 (0)