Skip to content

fix: remove caddy to support HF #42

fix: remove caddy to support HF

fix: remove caddy to support HF #42

Workflow file for this run

name: Build
on:
push:
branches: main
paths:
- .github/workflows/build.yml
- Dockerfile.build
- Cargo.toml
- src/**
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
- name: Install Graphite
run: sudo apt install -y libgraphite2-dev
- name: Cache Cargo
uses: actions/cache@v4.0.2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Lint
run: cargo clippy
build:
uses: winstxnhdw/actions/.github/workflows/docker-push.yml@main
with:
file: Dockerfile.build
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
permissions:
packages: write
restart:
needs: [lint, build]
uses: winstxnhdw/actions/.github/workflows/spaces-restart.yml@main
secrets:
token: ${{ secrets.HF_TOKEN }}