Skip to content

updated ui toolchain #4

updated ui toolchain

updated ui toolchain #4

name: build-twitch-alerts-frontend
on:
push:
branches:
- 'main'
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
-
name: Install Trunk
run: cargo install trunk
-
name: Build UI
run: |
cd frontend/wasm
trunk build --release
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DH_USERNAME }}
password: ${{ secrets.DH_PASSWORD }}
-
name: Build and push API
uses: docker/build-push-action@v4
with:
context: ./frontend/wasm/
push: true
tags: nullchannel/twitch-alerts:${{ github.sha }}