6172332be7
- CHANGELOG.md mit v1.5.2 Eintrag erstellt - README.md Architektur-Baum aktualisiert (dialog.js, onboarding.js, opera/) - release.yml erstellt 3 ZIP-Pakete (Chrome, Firefox, Opera) - quality.yml prueft alle 3 Manifests auf V3 und Versions-Konsistenz
77 lines
2.9 KiB
YAML
77 lines
2.9 KiB
YAML
# Release — erstellt ZIP-Pakete für Chrome, Firefox und Opera bei neuem Tag
|
|
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-release:
|
|
name: Build & Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Version aus Tag extrahieren
|
|
id: version
|
|
run: echo "tag=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Chrome/Edge ZIP erstellen (Manifest V3)
|
|
run: |
|
|
mkdir -p dist
|
|
zip -r "dist/hellion-newtab-${{ steps.version.outputs.tag }}-chrome.zip" \
|
|
manifest.json newtab.html src/js/*.js src/css/ assets/ \
|
|
-x "*.git*" "dist/*" ".github/*" "src/js/opera/*"
|
|
|
|
- name: Firefox ZIP erstellen (Manifest V3)
|
|
run: |
|
|
cp manifest.json manifest.chrome-backup.json
|
|
cp manifest.firefox.json manifest.json
|
|
zip -r "dist/hellion-newtab-${{ steps.version.outputs.tag }}-firefox.zip" \
|
|
manifest.json newtab.html src/js/*.js src/css/ assets/ \
|
|
-x "*.git*" "dist/*" ".github/*" "manifest.chrome-backup.json" "manifest.firefox.json" "src/js/opera/*"
|
|
mv manifest.chrome-backup.json manifest.json
|
|
|
|
- name: Opera/Opera GX ZIP erstellen (Manifest V3 + Workaround)
|
|
run: |
|
|
cp manifest.json manifest.chrome-backup.json
|
|
cp manifest.opera.json manifest.json
|
|
zip -r "dist/hellion-newtab-${{ steps.version.outputs.tag }}-opera.zip" \
|
|
manifest.json newtab.html src/js/*.js src/js/opera/ src/css/ assets/ \
|
|
-x "*.git*" "dist/*" ".github/*" "manifest.chrome-backup.json" "manifest.opera.json"
|
|
mv manifest.chrome-backup.json manifest.json
|
|
|
|
- name: SHA256 Checksummen erstellen
|
|
run: |
|
|
cd dist
|
|
sha256sum *.zip > checksums-sha256.txt
|
|
cat checksums-sha256.txt
|
|
|
|
- name: GitHub Release erstellen
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
name: "Hellion NewTab ${{ steps.version.outputs.tag }}"
|
|
body: |
|
|
## Hellion NewTab ${{ steps.version.outputs.tag }}
|
|
|
|
### Installation
|
|
- **Chrome / Edge / Brave / Vivaldi:** `hellion-newtab-${{ steps.version.outputs.tag }}-chrome.zip`
|
|
- **Firefox:** `hellion-newtab-${{ steps.version.outputs.tag }}-firefox.zip`
|
|
- **Opera / Opera GX:** `hellion-newtab-${{ steps.version.outputs.tag }}-opera.zip`
|
|
|
|
Siehe [README](README.md) für die vollständige Installationsanleitung.
|
|
|
|
### Checksummen
|
|
Siehe `checksums-sha256.txt` zur Integritätsprüfung.
|
|
files: |
|
|
dist/hellion-newtab-${{ steps.version.outputs.tag }}-chrome.zip
|
|
dist/hellion-newtab-${{ steps.version.outputs.tag }}-firefox.zip
|
|
dist/hellion-newtab-${{ steps.version.outputs.tag }}-opera.zip
|
|
dist/checksums-sha256.txt
|
|
generate_release_notes: true
|