Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 4, 2025

Enables testing pull requests by automatically building and publishing preview artifacts.

Changes

  • New workflow .github/workflows/pr-preview.yml:

    • Triggers on PR open/update events
    • Injects secrets (APIFY_TOKEN, GOOGLE_TOKEN) into static files
    • Uploads artifact with explicit file list to exclude sensitive content (.git, .github, etc.)
    • Posts/updates PR comment with download link and testing instructions
    • 7-day artifact retention
  • Documentation updates in README.md explaining the preview workflow

Usage

When a PR is opened:

  1. Workflow runs automatically
  2. Bot comments with artifact download link
  3. Download, extract, serve locally to test
  4. Comment updates on subsequent pushes

No changes to existing deployment workflow.

Original prompt

add support for publishing from pull requests for testing purposes


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 4, 2025
Copilot AI changed the title [WIP] Add support for publishing from pull requests Add PR preview workflow for testing changes before merge Nov 4, 2025
Copilot AI requested a review from ProLoser November 4, 2025 20:42
Copilot finished work on behalf of ProLoser November 4, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants