Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

update publish workflow, id-token write permission needed to deploy to pup

Gregor Žunič52b93277679b
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 3adfcde17..25759e28c 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -15,10 +15,11 @@ on:
release:
types: [published]
schedule:
- - cron: "0 17 * * FRI" # Every Friday at 5 PM UTC
+ - cron: "0 17 * * FRI" # Every Friday at 5 PM UTC
permissions:
contents: write
+ id-token: write
jobs:
pre_commit_and_tests:
@@ -31,18 +32,18 @@ jobs:
with:
python-version: "3.x"
- uses: astral-sh/setup-uv@v5
- - run: uv run ruff check --no-fix --select PLE # check only for syntax errors
+ - run: uv run ruff check --no-fix --select PLE # check only for syntax errors
- run: uv build
- run: uv run --isolated --no-project --with pytest --with dist/*.whl tests/conftest.py
- run: uv run --isolated --no-project --with pytest --with dist/*.tar.gz tests/conftest.py
- run: uv run --with=dotenv pytest \
- --ignore=tests/test_dropdown_error.py \
- --ignore=tests/test_gif_path.py \
- --ignore=tests/test_models.py \
- --ignore=tests/test_react_dropdown.py \
- --ignore=tests/test_save_conversation.py \
- --ignore=tests/test_vision.py \
- --ignore=tests/test_wait_for_element.py || true
+ --ignore=tests/test_dropdown_error.py \
+ --ignore=tests/test_gif_path.py \
+ --ignore=tests/test_models.py \
+ --ignore=tests/test_react_dropdown.py \
+ --ignore=tests/test_save_conversation.py \
+ --ignore=tests/test_vision.py \
+ --ignore=tests/test_wait_for_element.py || true
- run: uv publish --trusted-publishing always
tag_pre_release:
@@ -72,18 +73,18 @@ jobs:
with:
python-version: "3.x"
- uses: astral-sh/setup-uv@v5
- - run: uv run ruff check --no-fix --select PLE # check only for syntax errors
+ - run: uv run ruff check --no-fix --select PLE # check only for syntax errors
- run: uv build
- run: uv run --isolated --no-project --with pytest --with dist/*.whl tests/conftest.py
- run: uv run --isolated --no-project --with pytest --with dist/*.tar.gz tests/conftest.py
- run: uv run --with=dotenv pytest \
- --ignore=tests/test_dropdown_error.py \
- --ignore=tests/test_gif_path.py \
- --ignore=tests/test_models.py \
- --ignore=tests/test_react_dropdown.py \
- --ignore=tests/test_save_conversation.py \
- --ignore=tests/test_vision.py \
- --ignore=tests/test_wait_for_element.py || true
+ --ignore=tests/test_dropdown_error.py \
+ --ignore=tests/test_gif_path.py \
+ --ignore=tests/test_models.py \
+ --ignore=tests/test_react_dropdown.py \
+ --ignore=tests/test_save_conversation.py \
+ --ignore=tests/test_vision.py \
+ --ignore=tests/test_wait_for_element.py || true
- run: uv publish --trusted-publishing always
- name: Push to stable branch (if stable release)
if: startsWith(github.ref_name, 'v') && !contains(github.ref_name, 'rc')