fix: remove caddy
to support HF
#42
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: 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 }} |