Skip to content

Deploy Terrarium @ f21631380c74e212f8061d99fe1f5d8e27fa637e #13

Deploy Terrarium @ f21631380c74e212f8061d99fe1f5d8e27fa637e

Deploy Terrarium @ f21631380c74e212f8061d99fe1f5d8e27fa637e #13

Workflow file for this run

name: Deploy Terrarium
concurrency: deploy
run-name: Deploy Terrarium @ ${{ github.event.workflow_run.head_sha }}
on:
workflow_run:
workflows: ["Rust Test"]
types: [completed]
branches: "main"
jobs:
build:
name: Build Release
runs-on: ubuntu-latest
steps:
- name: Fail Deploy if Tests Failed
run: exit 1
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
- name: Setup | Checkout
with:
ref: ${{ github.event.workflow_run.head_sha }}
uses: actions/checkout@v3
- name: Setup | Rust
uses: ATiltedTree/setup-rust@v1
with:
rust-version: nightly
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: protobuf-compiler
version: v0
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v0-rust"
- name: Build
run: cargo build --release --all-targets
- name: Upload Releases
uses: actions/upload-artifact@v3
with:
name: releases
path: |
target/release/web-axum
target/release/web-rocket
target/release/web-lambda
target/release/sherlock