mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Publish Release Binaries
|
|
|
|
on:
|
|
push:
|
|
tags: [ 'v*.*.*' ]
|
|
|
|
jobs:
|
|
backend-tests:
|
|
name: "Backend Server Tests"
|
|
uses: sysadminsmedia/homebox/.github/workflows/partial-backend.yaml@main
|
|
|
|
frontend-tests:
|
|
name: "Frontend and End-to-End Tests"
|
|
uses: sysadminsmedia/homebox/.github/workflows/partial-frontend.yaml@main
|
|
|
|
goreleaser:
|
|
name: goreleaser
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
|
|
- uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7.30.1
|
|
|
|
- name: Build Frontend and Copy to Backend
|
|
working-directory: frontend
|
|
run: |
|
|
pnpm install --shamefully-hoist
|
|
pnpm run build
|
|
cp -r ./.output/public ../backend/app/api/static/
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v5
|
|
with:
|
|
workdir: "backend"
|
|
distribution: goreleaser
|
|
version: latest
|
|
args: release --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|