mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2026-04-06 09:34:29 +02:00
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
create-release:
|
|
name: Create release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Build changelog
|
|
id: github_changelog
|
|
run: |
|
|
changelog=$(git log $(git tag | tail -2 | head -1)..HEAD --no-merges --oneline)
|
|
echo "changelog<<EOF" >> $GITHUB_OUTPUT
|
|
echo "$changelog" >> $GITHUB_OUTPUT
|
|
echo "EOF" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
body: ${{ steps.github_changelog.outputs.changelog }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
|
|
|
build-package:
|
|
name: Build binaries
|
|
needs: create-release
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest]
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Build artifacts
|
|
run: |
|
|
python -m pip install -r requirements.txt
|
|
python -m pip install pyinstaller==6.17.0
|
|
cd src
|
|
python build_package.py
|
|
|
|
- name: Upload release artifacts
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: ./dist/flaresolverr_*
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|