Deploy Terrarium @ 3790aee1c3447fea5374f241fbd743e44bbff3a5 #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |