chore: run definitive web player fix v1.5.70

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-09-30 12:09:35 +02:00
1 parent a7c1e1a084
commit ddaaf3a006
1 file changed
+81
+81
View File
@@ -0,0 +1,81 @@
name: Fix Landwelle web player v1.5.70
on:
push:
branches: [main]
paths:
- '.github/workflows/fix-player-v1570.yml'
permissions:
contents: write
jobs:
fix:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.4'
cache: true
- name: Apply player fix
run: python3 scripts/fix-player-v1570.py
- name: Format Go files
run: gofmt -w main.go main_test.go player_stream_v1570_test.go
- name: Check active player JavaScript
run: |
node --check web/assets/app-v18.js
node --check web/assets/player-v16.js
- name: Verify modules
run: go mod verify
- name: Test
run: go test ./...
- name: Vet
run: go vet ./...
- name: ARM64 production build
env:
CGO_ENABLED: '0'
GOOS: linux
GOARCH: arm64
run: |
go build -trimpath -o /tmp/landwelle-portal-linux-arm64 .
go build -trimpath -o /tmp/landwelle-migrate-linux-arm64 ./cmd/migrate
go build -trimpath -o /tmp/landwelle-adminpass-linux-arm64 ./cmd/adminpass
- name: Commit v1.5.70
run: |
rm -f scripts/fix-player-v1570.py
rm -f .github/workflows/fix-player-v1570.yml
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "fix: make web player use configured stream reliably"
git push origin HEAD:main
- name: Build complete source package
run: |
git archive --format=zip --output=/tmp/landwelle-go-portal-v1.5.70-COMPLETE-source.zip HEAD
sha256sum /tmp/landwelle-go-portal-v1.5.70-COMPLETE-source.zip > /tmp/landwelle-go-portal-v1.5.70-COMPLETE-source.sha256
- name: Upload complete source package
uses: actions/upload-artifact@v4
with:
name: landwelle-v1.5.70-complete-source
path: |
/tmp/landwelle-go-portal-v1.5.70-COMPLETE-source.zip
/tmp/landwelle-go-portal-v1.5.70-COMPLETE-source.sha256
if-no-files-found: error
retention-days: 14