Add release workflow for SDB Audio Extractor Chrome extension
Some checks failed
Create Release / build-and-release (push) Failing after 3s

This commit is contained in:
JSC
2025-10-05 16:58:09 +02:00
parent 51c10a2a2f
commit f452fe691c

View File

@@ -0,0 +1,56 @@
name: Create Release
on:
push:
tags:
- 'v*'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get tag version
id: tag
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Create extension package
run: |
cd extension-chrome
zip -r ../sdb-audio-extractor-${{ steps.tag.outputs.VERSION }}.zip \
manifest.json \
popup.html \
popup.js \
options.html \
options.js \
content.js \
background.js \
icon16.png \
icon48.png \
icon128.png \
README.md
- name: Create Release
uses: https://gitea.com/gitea/release-action@main
with:
token: ${{ secrets.TOKEN }}
tag_name: ${{ steps.tag.outputs.VERSION }}
name: Release ${{ steps.tag.outputs.VERSION }}
draft: false
prerelease: false
body: |
## SDB Audio Extractor ${{ steps.tag.outputs.VERSION }}
Chrome extension for extracting audio from YouTube videos to your SDB soundboard.
### Installation
1. Download the `sdb-audio-extractor-${{ steps.tag.outputs.VERSION }}.zip` file
2. Extract the contents
3. Open Chrome and go to `chrome://extensions/`
4. Enable "Developer mode"
5. Click "Load unpacked" and select the extracted folder
files: |
sdb-audio-extractor-${{ steps.tag.outputs.VERSION }}.zip