fix: remove service widget references from core layouts
Remove <x-analytics-tracking/>, <x-trust-widget/>, and <x-notify-widget/> from base and minimal layouts. These are consumer-level service components that don't belong in the core framework package. Also add Forgejo release workflow to publish Composer packages on tag push. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ef20b8f2ab
commit
d4b51393f4
3 changed files with 42 additions and 6 deletions
42
.forgejo/workflows/release.yml
Normal file
42
.forgejo/workflows/release.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
name: Publish Composer Package
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Extract version from tag
|
||||
id: version
|
||||
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Create package archive
|
||||
run: |
|
||||
zip -r package.zip . \
|
||||
-x ".forgejo/*" \
|
||||
-x ".git/*" \
|
||||
-x "tests/*" \
|
||||
-x "docker/*" \
|
||||
-x "*.yaml" \
|
||||
-x "infection.json5" \
|
||||
-x "phpstan.neon" \
|
||||
-x "phpunit.xml" \
|
||||
-x "psalm.xml" \
|
||||
-x "rector.php" \
|
||||
-x "TODO.md" \
|
||||
-x "ROADMAP.md" \
|
||||
-x "CONTRIBUTING.md" \
|
||||
-x "package.json" \
|
||||
-x "package-lock.json"
|
||||
|
||||
- name: Publish to Forgejo Composer registry
|
||||
run: |
|
||||
curl --fail --user "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}" \
|
||||
--upload-file package.zip \
|
||||
"${{ github.server_url }}/api/packages/core/composer?version=${{ steps.version.outputs.VERSION }}"
|
||||
|
|
@ -21,7 +21,5 @@
|
|||
|
||||
@livewireScripts
|
||||
|
||||
{{-- Analytics tracking (auto-detects pixel key from host) --}}
|
||||
<x-analytics-tracking />
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -136,9 +136,5 @@
|
|||
|
||||
@stack('scripts')
|
||||
|
||||
{{-- Service widgets (auto-detect pixel keys from host) --}}
|
||||
<x-analytics-tracking/>
|
||||
<x-trust-widget/>
|
||||
<x-notify-widget/>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue