Files
2026-02-23 20:58:45 +01:00

83 lines
2.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Build and Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (pl. v1.0.0)'
required: true
default: 'v1.0.0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up build directories
run: |
mkdir -p build/chrome
mkdir -p build/firefox
- name: Copy files Chrome
run: |
rsync -av \
--exclude='.git' \
--exclude='.gitea' \
--exclude='README*' \
--exclude='readme*' \
--exclude='LICENSE*' \
--exclude='license*' \
--exclude='*.md' \
--exclude='build/' \
. build/chrome/
- name: Copy files Firefox
run: |
rsync -av \
--exclude='.git' \
--exclude='.gitea' \
--exclude='README*' \
--exclude='readme*' \
--exclude='LICENSE*' \
--exclude='license*' \
--exclude='*.md' \
--exclude='build/' \
. build/firefox/
- name: Prepare Chrome build
run: |
rm -f build/chrome/manifest_fox.json
- name: Prepare Firefox build
run: |
rm -f build/firefox/manifest.json
mv build/firefox/manifest_fox.json build/firefox/manifest.json
- name: Create ZIP archives
run: |
cd build/chrome
zip -r ../../firka-extension-chrome-${{ github.event.inputs.version }}.zip .
cd ../firefox
zip -r ../../firka-extension-firefox-${{ github.event.inputs.version }}.zip .
- name: Create Release
uses: actions/gitea-release@v1
with:
token: ${{ secrets.GITEA_TOKEN }}
tag_name: ${{ github.event.inputs.version }}
release_name: ${{ github.event.inputs.version }}
body: |
## Firka Extension ${{ github.event.inputs.version }}
### Letöltések
- **Chrome / Chromium** `firka-extension-chrome-${{ github.event.inputs.version }}.zip`
- **Firefox** `firka-extension-firefox-${{ github.event.inputs.version }}.zip`
files: |
firka-extension-chrome-${{ github.event.inputs.version }}.zip
firka-extension-firefox-${{ github.event.inputs.version }}.zip
draft: false
prerelease: false