name: Release on: push: tags: - "v*.*.*" jobs: create-release: name: Create release runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v5 with: fetch-depth: 0 - name: Build changelog id: github_changelog run: | changelog=$(git log $(git tag | tail -2 | head -1)..HEAD --no-merges --oneline) changelog="${changelog//'%'/'%25'}" changelog="${changelog//$'\n'/'%0A'}" changelog="${changelog//$'\r'/'%0D'}" echo "changelog=${changelog}" >> $GITHUB_ENV - name: Create release uses: softprops/action-gh-release@v2 with: tag_name: ${{ github.ref }} name: ${{ github.ref }} body: ${{ env.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@v5 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.16.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 }}