feat(backend): log listening address #17
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: | |
- main | |
jobs: | |
# Release unpublished packages. | |
release-plz-release: | |
name: Release-plz release | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 22 | |
cache-dependency-path: ./frontend/package-lock.json | |
- 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 | |
# https://github.com/twistedfall/opencv-rust/blob/master/ci/install-ubuntu.sh#L27 | |
- name: Use clang workaround | |
run: sudo ln -fs libclang.so.1 /usr/lib/llvm-14/lib/libclang.so | |
- name: Restore Apt packages | |
uses: awalsh128/[email protected] | |
with: | |
packages: libopencv-dev | |
version: "1.0" | |
- name: Install Rust toolchain | |
uses: dtolnay/[email protected] | |
- name: Restore Rust cache | |
uses: Swatinem/[email protected] | |
with: | |
workspaces: ./backend | |
- name: Run release-plz | |
uses: release-plz/[email protected] | |
with: | |
command: release | |
manifest_path: ./backend/Cargo.toml | |
config: ./backend/release-plz.toml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
# Create a PR with the new versions and changelog, preparing the next release. | |
release-plz-pr: | |
name: Release-plz PR | |
runs-on: ubuntu-22.04 | |
concurrency: | |
group: release-plz-${{ github.ref }} | |
cancel-in-progress: false | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install Rust toolchain | |
uses: dtolnay/[email protected] | |
- name: Restore Rust cache | |
uses: Swatinem/[email protected] | |
with: | |
workspaces: ./backend | |
- name: Run release-plz | |
uses: release-plz/[email protected] | |
with: | |
command: release-pr | |
manifest_path: ./backend/Cargo.toml | |
config: ./backend/release-plz.toml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |