mirror of
https://github.com/RetroGameSets/RGSX.git
synced 2026-03-19 08:16:49 +01:00
116 lines
3.7 KiB
YAML
116 lines
3.7 KiB
YAML
# Pour déclencher ce workflow : git tag v1.X.X && git push origin v1.X.X
|
|
# OU en une seule ligne : git tag v1.X.X && git push origin --tags
|
|
name: Release on tag
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
create_release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build RGSX Release Package
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
VERSION="${GITHUB_REF_NAME}"
|
|
mkdir -p dist
|
|
|
|
echo "Building RGSX package from ports/RGSX/ directory…"
|
|
cd ports/RGSX
|
|
|
|
zip -r "../../dist/RGSX_${VERSION}.zip" . \
|
|
-x "logs/*" \
|
|
"logs/**" \
|
|
"images/*" \
|
|
"images/**" \
|
|
"games/*" \
|
|
"games/**" \
|
|
"scripts/*" \
|
|
"scripts/**" \
|
|
"__pycache__/*" \
|
|
"__pycache__/**" \
|
|
"*.pyc" \
|
|
"sources.json" \
|
|
"*.log"
|
|
|
|
cd ../..
|
|
|
|
echo "Creating stable-named copy for latest download link…"
|
|
cp -f "dist/RGSX_${VERSION}.zip" "dist/RGSX_latest.zip"
|
|
|
|
echo "✓ RGSX package created successfully"
|
|
|
|
echo ""
|
|
echo "Building RGSX Retrobat package (includes ports/ and windows/ directories)…"
|
|
zip -r "dist/RGSX_Retrobat_${VERSION}.zip" ports windows \
|
|
-x "ports/RGSX/logs/*" \
|
|
"ports/RGSX/logs/**" \
|
|
"ports/RGSX/images/*" \
|
|
"ports/RGSX/images/**" \
|
|
"ports/RGSX/games/*" \
|
|
"ports/RGSX/games/**" \
|
|
"ports/RGSX/scripts/*" \
|
|
"ports/RGSX/scripts/**" \
|
|
"ports/RGSX/__pycache__/*" \
|
|
"ports/RGSX/__pycache__/**" \
|
|
"ports/RGSX/*.pyc" \
|
|
"ports/RGSX/sources.json" \
|
|
"ports/RGSX/*.log" \
|
|
"windows/logs/*" \
|
|
"windows/*.xml" \
|
|
"ports/*.xml" \
|
|
"*.xml" \
|
|
"*.pyc" \
|
|
"*.xml" \
|
|
"*.log"
|
|
|
|
echo "Creating stable-named copy for Retrobat package…"
|
|
cp -f "dist/RGSX_Retrobat_${VERSION}.zip" "dist/RGSX_Retrobat_latest.zip"
|
|
|
|
echo "✓ All packages created successfully"
|
|
ls -lh dist/
|
|
|
|
- name: Create GitHub Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
tag_name: ${{ github.ref_name }}
|
|
name: RGSX ${{ github.ref_name }}
|
|
generate_release_notes: true
|
|
draft: false
|
|
prerelease: false
|
|
body: |
|
|
## 📦 RGSX Release ${{ github.ref_name }}
|
|
|
|
### 📥 Installation
|
|
|
|
#### Batocera/Knulli
|
|
1. Download `RGSX_${{ github.ref_name }}.zip`
|
|
2. Extract in `/userdata/roms/ports/RGSX/`
|
|
3. Launch RGSX from the Ports menu
|
|
|
|
#### Retrobat/Windows
|
|
1. `RGSX_Retrobat_${{ github.ref_name }}.zip`
|
|
2. Extract in retrobat/roms (les dossiers `ports/` et `windows/` seront créés automatiquement)
|
|
3. Launch RGSX from system "Windows"
|
|
|
|
|
|
### 📖 Documentation
|
|
[]README.md](https://github.com/${{ github.repository }}/blob/main/README.md)
|
|
files: |
|
|
dist/RGSX_${{ github.ref_name }}.zip
|
|
dist/RGSX_latest.zip
|
|
dist/RGSX_Retrobat_${{ github.ref_name }}.zip
|
|
dist/RGSX_Retrobat_latest.zip
|
|
dist/RGSX_latest.zip
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|