Workflow file for this run
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
# Code taken from https://release-plz.dev/docs/github/quickstart | |
name: Release-plz | |
permissions: | |
pull-requests: write | |
contents: write | |
on: | |
push: | |
branches: | |
- t2 | |
jobs: | |
# Release unpublished packages. | |
release-plz-release: | |
name: Release-plz release | |
runs-on: ubuntu-22.04 # TODO: Lower to 20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Restore Apt packages | |
uses: awalsh128/[email protected] | |
with: | |
packages: libopencv-dev clang libclang-dev | |
version: "1.0" | |
- name: Install Rust toolchain | |
uses: dtolnay/[email protected] | |
- name: Restore Rust cache | |
uses: Swatinem/[email protected] | |
with: | |
workspaces: ./backend | |
- name: Install frontend dependencies | |
run: npm ci | |
working-directory: ./frontend | |
- name: Build frontend | |
run: npm run build | |
working-directory: ./frontend | |
- name: Copy frontend build to backend | |
run: | | |
mkdir -p static | |
cp -r ../frontend/dist/* ./static | |
working-directory: ./backend | |
- name: Build | |
run: cargo build --release | |
working-directory: ./backend |