# Release — erstellt ZIP-Pakete für Chrome und Firefox 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/ assets/ \ -x "*.git*" "dist/*" ".github/*" - name: Firefox ZIP erstellen (Manifest V2) run: | # manifest.firefox.json wird zu manifest.json für Firefox 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/ assets/ \ -x "*.git*" "dist/*" ".github/*" "manifest.chrome-backup.json" "manifest.firefox.json" # Wiederherstellen 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 / Opera / Vivaldi:** `hellion-newtab-${{ steps.version.outputs.tag }}-chrome.zip` herunterladen und entpacken - **Firefox:** `hellion-newtab-${{ steps.version.outputs.tag }}-firefox.zip` herunterladen und entpacken 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/checksums-sha256.txt generate_release_notes: true