Bump dependencies & CI actions (#1578)

This commit is contained in:
flower
2025-09-18 23:20:15 +03:00
committed by GitHub
parent 75e5b190d6
commit d3b1ba6e88
5 changed files with 43 additions and 73 deletions

View File

@@ -1,4 +1,4 @@
name: autotag name: Autotag
on: on:
push: push:
@@ -9,11 +9,10 @@ jobs:
tag-release: tag-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - name: Checkout repository
name: Checkout uses: actions/checkout@v5
uses: actions/checkout@v4
- - name: Auto Tag
name: Auto Tag
uses: Klemensas/action-autotag@stable uses: Klemensas/action-autotag@stable
with: with:
GITHUB_TOKEN: "${{ secrets.GH_PAT }}" GITHUB_TOKEN: "${{ secrets.GH_PAT }}"

View File

@@ -1,4 +1,4 @@
name: release-docker name: Docker release
on: on:
push: push:
@@ -15,10 +15,10 @@ concurrency:
jobs: jobs:
build-docker-images: build-docker-images:
if: ${{ !github.event.pull_request.head.repo.fork }} if: ${{ !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-24.04 runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Downcase repo - name: Downcase repo
run: echo REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV run: echo REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
@@ -43,8 +43,8 @@ jobs:
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v3
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}

View File

@@ -1,4 +1,4 @@
name: release name: Release
on: on:
push: push:
@@ -8,12 +8,12 @@ on:
jobs: jobs:
create-release: create-release:
name: Create release name: Create release
runs-on: ubuntu-24.04 runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 0 # get all commits, branches and tags (required for the changelog) fetch-depth: 0
- name: Build changelog - name: Build changelog
id: github_changelog id: github_changelog
@@ -22,74 +22,45 @@ jobs:
changelog="${changelog//'%'/'%25'}" changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}" changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}" changelog="${changelog//$'\r'/'%0D'}"
echo "##[set-output name=changelog;]${changelog}" echo "changelog=${changelog}" >> $GITHUB_ENV
- name: Create release - name: Create release
id: create_release uses: softprops/action-gh-release@v2
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ github.ref }}
release_name: ${{ github.ref }} name: ${{ github.ref }}
body: ${{ steps.github_changelog.outputs.changelog }} body: ${{ env.changelog }}
draft: false env:
prerelease: false GITHUB_TOKEN: ${{ secrets.GH_PAT }}
build-linux-package: build-package:
name: Build Linux binary name: Build binaries
needs: create-release needs: create-release
runs-on: ubuntu-24.04 runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps: steps:
- name: Checkout code - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v5
with: with:
fetch-depth: 0 # get all commits, branches and tags (required for the changelog) fetch-depth: 0
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v5 uses: actions/setup-python@v6
with: with:
python-version: "3.13" python-version: "3.13"
- name: Build artifacts - name: Build artifacts
run: | run: |
python -m pip install -r requirements.txt python -m pip install -r requirements.txt
python -m pip install pyinstaller==6.14.2 python -m pip install pyinstaller==6.16.0
cd src cd src
python build_package.py python build_package.py
- name: Upload release artifacts - name: Upload release artifacts
uses: alexellis/upload-assets@0.4.1 uses: softprops/action-gh-release@v2
with:
files: ./dist/flaresolverr_*
env: env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }} GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
asset_paths: '["./dist/flaresolverr_*"]'
build-windows-package:
name: Build Windows binary
needs: create-release
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # get all commits, branches and tags (required for the changelog)
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Build artifacts
run: |
python -m pip install -r requirements.txt
python -m pip install pyinstaller==6.14.2
cd src
python build_package.py
- name: Upload release artifacts
uses: alexellis/upload-assets@0.4.1
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
with:
asset_paths: '["./dist/flaresolverr_*"]'

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2023 Diego Heras (ngosang / ngosang@hotmail.es) Copyright (c) 2025 Diego Heras (ngosang / ngosang@hotmail.es)
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,14 +1,14 @@
bottle==0.13.4 bottle==0.13.4
waitress==3.0.2 waitress==3.0.2
selenium==4.34.2 selenium==4.35.0
func-timeout==4.3.5 func-timeout==4.3.5
prometheus-client==0.22.1 prometheus-client==0.22.1
# required by undetected_chromedriver # Required by undetected_chromedriver
requests==2.32.4 requests==2.32.5
certifi==2025.7.9 certifi==2025.8.3
websockets==15.0.1 websockets==15.0.1
packaging==25.0 packaging==25.0
# only required for linux and macos # Only required for Linux and macOS
xvfbwrapper==0.2.13; platform_system != "Windows" xvfbwrapper==0.2.14; platform_system != "Windows"
# only required for windows # Only required for Windows
pefile==2024.8.26; platform_system == "Windows" pefile==2024.8.26; platform_system == "Windows"