From a7daa244081729d2960466efae63d6c274428792 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 29 Nov 2023 16:07:24 +0000 Subject: [PATCH] Add action for Shuttle deployment --- .github/workflows/shuttle.yaml | 35 ++++++++++++++++++++++++++++++++++ Shuttle.toml | 1 + 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/shuttle.yaml create mode 100644 Shuttle.toml diff --git a/.github/workflows/shuttle.yaml b/.github/workflows/shuttle.yaml new file mode 100644 index 0000000..96e67af --- /dev/null +++ b/.github/workflows/shuttle.yaml @@ -0,0 +1,35 @@ +name: Shuttle Deploy + +on: + push: + tags: + - "*-?v[0-9]+*" + branches: + - "shuttle-deploy" # For testing purpose on this branch. + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: extractions/setup-just@v1 + - name: Checkout code + uses: actions/checkout@v3 + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + - name: Install wasm-pack + run: | + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + - uses: rui314/setup-mold@v1 + - name: Cache build artifacts + uses: Swatinem/rust-cache@v2 + - name: Build peer + run: just peer + - uses: shuttle-hq/deploy-action@main + with: + deploy-key: ${{ secrets.SHUTTLE_DEPLOY_KEY }} + allow-dirty: "true" diff --git a/Shuttle.toml b/Shuttle.toml new file mode 100644 index 0000000..1f6225c --- /dev/null +++ b/Shuttle.toml @@ -0,0 +1 @@ +name = "meeting"