Skip to content

Commit

Permalink
Only for Shuttle deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlsh authored and Your Name committed Jan 24, 2024
1 parent ca6f2f7 commit a25bb8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/shuttle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
tags:
- "*-?v[0-9]+*"
branches:
- "shuttle-deploy" # For testing purpose on this branch.
- "shuttle" # For testing purpose on this branch.
workflow_dispatch:

jobs:
Expand All @@ -15,6 +15,8 @@ jobs:
- uses: extractions/setup-just@v1
- name: Checkout code
uses: actions/checkout@v3
with:
ref: shuttle
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -28,7 +30,9 @@ jobs:
- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
- name: Build peer
run: just peer
run: |
just peer
rm -rf static/pkg/.gitignore
- uses: shuttle-hq/deploy-action@main
with:
deploy-key: ${{ secrets.SHUTTLE_DEPLOY_KEY }}
Expand Down
3 changes: 3 additions & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore files not necessary for Shuttle build.
/.github
/README.md
2 changes: 1 addition & 1 deletion coordinator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["std"]
default = ["shuttle"]
std = [
"tokio/rt-multi-thread",
"tokio/net",
Expand Down

0 comments on commit a25bb8f

Please sign in to comment.