chore clean repository deployment files

This commit is contained in:
ShukeBta
2026-07-02 01:56:40 +08:00
parent aec1ca3e1b
commit 1b56469beb
21 changed files with 29 additions and 1482 deletions
+4 -2
View File
@@ -54,9 +54,11 @@ jobs:
needs: [backend, frontend]
steps:
- uses: actions/checkout@v4
- name: Validate single-image compose
run: docker compose -f docker-compose.simple.yml config --quiet
- name: Validate tier 1 compose
run: docker compose -f docker-compose.yml config --quiet
- name: Validate tier 2 compose
run: docker compose -f docker-compose.yml -f docker-compose.standard.yml config --quiet
run: docker compose -f docker-compose.standard.yml config --quiet
- name: Validate tier 3 compose
run: docker compose -f docker-compose.yml -f docker-compose.standard.yml -f docker-compose.search.yml config --quiet
run: docker compose -f docker-compose.search.yml config --quiet
-64
View File
@@ -1,64 +0,0 @@
name: Publish release packages
on:
workflow_dispatch:
inputs:
version:
description: 'Release tag to publish, for example MediaStationGo-v0.0.32'
required: true
type: string
ref:
description: 'Git ref to build from'
required: false
default: main
type: string
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
env:
RELEASE_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.ref_name }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref }}
- uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
cache-dependency-path: web/package-lock.json
- name: Build release packages
run: ./scripts/package-release.sh
env:
VERSION: ${{ env.RELEASE_VERSION }}
- name: Generate checksums
run: |
cd dist-release
sha256sum * > SHA256SUMS.txt
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
dist-release/*.tar.gz
dist-release/*.zip
dist-release/SHA256SUMS.txt
generate_release_notes: true
tag_name: ${{ env.RELEASE_VERSION }}
target_commitish: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.sha }}
# GitHub immutable releases reject deleting/replacing existing assets.
# Keep reruns idempotent by skipping same-name assets instead of
# deleting them first.
overwrite_files: false