Skip to content

feat: aggregate same mods from multiple repos in search (#60) #171

feat: aggregate same mods from multiple repos in search (#60)

feat: aggregate same mods from multiple repos in search (#60) #171

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
check:
name: Check and Build code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Lint all
run: bun run lint
- name: Build all
env:
# For website
BACKEND_URL: https://backend-modpackresolver.itrooz.fr
run: bun run build
- name: Upload website artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'web/build/'
- name: Upload CLI artifact
uses: actions/upload-artifact@v4
with:
name: modpackresolver-cli
path: 'cli/dist/*'
build-backend-image:
name: Build backend image
runs-on: ubuntu-latest
# permissions:
# packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Needed to use gha caching
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v3.10.0
with:
driver: docker-container
driver-opts: image=moby/buildkit:master,network=host
- name: Build Docker image
uses: docker/build-push-action@v4
if: github.event.repository.fork == false && github.ref_name == 'main'
with:
context: .
file: backend/backend.Containerfile
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
tags: |
ghcr.io/itrooz/modpackresolver/backend:latest
upload_pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: check
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
id-token: write
pages: write
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4