-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.07 KB
/
shuttle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Shuttle Deploy
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-shuttle-deploy
cancel-in-progress: true
on:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
# https://docs.github.com/en/actions/sharing-automations/reusing-workflows#calling-a-reusable-workflow
run_tests:
uses: ./.github/workflows/general.yml
deploy:
runs-on: ubuntu-latest
needs: run_tests
steps:
- uses: wykies/checkout@main
- uses: wykies/setup-rust-toolchain@main
- name: Load sqlx query files for shuttle version
run: cargo run --bin switch-db -- --no-edit-only-copy shuttle
- name: Install Trunk
run: cargo install --locked trunk
- name: Build client
run: ./scripts/build_chat_client.sh
- name: Include git diff for debug
run: git diff
- name: Include git status for debug
run: git status
- uses: shuttle-hq/deploy-action@v2
with:
shuttle-api-key: ${{ secrets.SHUTTLE_API_KEY }}
project-id: ${{ secrets.SHUTTLE_PROJ_ID }}