Commit Graph
105 Commits
Author SHA1 Message Date
dependabot[bot] 5cdb4f7212 ci(deps): bump actions/setup-node from 4 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 06:44:59 +00:00
xixu-me b0c1a849dc Update EdgeOne Pages deploy project name
Changed the project name in the deploy step from 'xget' to 'xget6' in the pages-eo GitHub Actions workflow.
2025-11-19 20:41:10 +08:00
xixu-me 733df36457 Update EdgeOne Pages deploy project name
Changed the project name in the deploy step from 'xget-pages' to 'xget' in the GitHub Actions workflow for EdgeOne Pages deployment.
2025-11-19 20:37:25 +08:00
xixu-me 0a8c11d91f Update docs and code references from Worker to Workers
Standardized terminology by changing 'Cloudflare Worker' to 'Cloudflare Workers' across documentation, workflow comments, and code. Expanded deployment instructions in README to include Cloudflare Pages and EdgeOne Pages, clarified secrets setup, and improved deployment notes for self-hosting.
2025-11-18 22:08:42 +08:00
xixu-me ebee4eceb7 Fix typos: replace 'Pagess' with 'Pages' in workflows
Corrects multiple instances of 'Pagess' to 'Pages' in the sync.yml workflow, including job names, comments, documentation, and deployment commands. Also removes redundant env block from pages-eo.yml. This improves clarity and ensures correct terminology for Cloudflare Pages.
2025-11-18 21:23:05 +08:00
xixu-me b908291b70 Update deployment workflows to trigger on workflow_run
Changed Cloudflare Pages and EdgeOne Pages workflows to trigger on successful completion of the 'Sync to Pages' workflow for the main branch, instead of on push to pages branch. Also updated permissions and job names for clarity and consistency.
2025-11-18 20:57:01 +08:00
xixu-me d39d61498e Remove install and build steps from workflow
Eliminated the 'Install dependencies' and 'Build project' steps from the pages-eo GitHub Actions workflow, leaving only the deployment step. This streamlines the workflow and may indicate that build artifacts are now pre-generated or handled elsewhere.
2025-11-18 20:47:49 +08:00
xixu-me 8df5c014c4 Add workflows for Cloudflare and EdgeOne Pages deployment
Introduces separate GitHub Actions workflows for deploying to Cloudflare Pages and EdgeOne Pages. Also renames and updates the existing deploy workflow to workers.yml, reduces its timeout, and clarifies step names for Cloudflare Workers deployment.
2025-11-18 20:41:09 +08:00
xixu-me 82be2ba6a8 Refactor workflow for Pagess deployment and cleanup
Renames all references from 'Page' or 'Pages' to 'Pagess' in the sync workflow, updates directory and script names, and consolidates the deployment process. Removes the EdgeOne conversion job and related configuration, simplifying the workflow to focus solely on Pagess deployment.
2025-11-18 19:59:35 +08:00
xixu-me 985b42c0fe Merge branch 'main' of https://github.com/xixu-me/Xget 2025-11-18 13:20:21 +08:00
xixu-me 3f184dd4c0 Add EdgeOne Pages conversion workflow
Introduces a new GitHub Actions job to automate converting the Worker codebase for EdgeOne Pages deployment. The workflow copies runtime files, creates a catch-all Pages Function handler, updates exports, generates edgeone.json configuration, modifies package.json scripts, and force-pushes to a dedicated 'pages' branch.
2025-11-18 12:10:44 +08:00
xixu-me 96004a2cff Merge pull request #107 from xixu-me/dependabot/github_actions/actions/attest-build-provenance-3
ci(deps): bump actions/attest-build-provenance from 2 to 3
2025-11-18 11:01:40 +08:00
xixu-me e7bf151f4d Add concurrency to workflows and refine sync job
Renamed 'depoly.yml' to 'deploy.yml' and added concurrency groups to deploy, image, and sync workflows for better job management. Updated the sync workflow to copy only runtime-required files, removing documentation, tests, and development configs from the deployment process.
2025-11-17 19:52:40 +08:00
dependabot[bot] 26a65bcabe ci(deps): bump actions/attest-build-provenance from 2 to 3
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 2 to 3.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](https://github.com/actions/attest-build-provenance/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-17 11:31:44 +00:00
xixu-me 6341c084d3 Update workflows and dependabot config
Added npm and Docker support to dependabot.yml. Updated deploy and image workflows to use latest actions/checkout and set timeouts. Renamed and improved sync workflow to exclude docs and tests, and updated file copy logic.
2025-11-17 19:18:57 +08:00
xixu-me 684fbd8cac Refactor Pages deployment workflows
Remove legacy EdgeOne Pages deployment and sync workflows, and add a new unified sync-worker-to-page.yml workflow for converting and syncing Worker code to a Pages-compatible branch. This streamlines the deployment process and updates the automation to use a more standard Cloudflare Pages Functions handler and configuration.
2025-11-17 18:54:28 +08:00
xixu-me 878479e116 Add workflow_dispatch trigger to sync-to-pages
Enables manual triggering of the sync-to-pages GitHub Actions workflow by adding the workflow_dispatch event.
2025-11-17 18:34:55 +08:00
xixu-me ba5b3766dc Add EdgeOne Pages deployment and sync workflows
Introduces two GitHub Actions workflows: one for deploying the 'pages' branch to EdgeOne Pages, and another for auto-syncing and converting the main Worker codebase to the 'pages' branch. This enables automated deployment and compatibility with EdgeOne Pages, including conversion steps, configuration, and branch management.
2025-11-17 18:33:05 +08:00
xixu-me 01081322cc Revert "Convert Cloudflare Worker to Cloudflare Pages" 2025-11-16 23:29:53 +08:00
Claude 989e19dfed Convert Cloudflare Worker to Cloudflare Pages
This commit converts the entire Xget application from a Cloudflare Worker
to a Cloudflare Page, enabling static asset hosting while maintaining all
existing functionality.

Changes:
- Add functions/[[path]].js: Catch-all Pages Function handler
- Add public/index.html: Landing page with Xget information
- Update src/index.js: Export handleRequest for Pages Function import
- Update wrangler.toml: Configure for Pages deployment
- Update package.json: Change scripts to use Pages commands
- Update vitest.config.js: Include functions/ in coverage
- Update .github/workflows/depoly.yml: Deploy to Pages
- Update documentation: CLAUDE.md, README.md, README.en.md

The conversion maintains full backward compatibility with existing tests
and functionality. All caching strategies, security headers, and protocol
handling remain unchanged.
2025-11-16 15:18:34 +00:00
xixu-me b865ed5876 Add attestations permission to workflow
Grants the workflow 'attestations: write' permission, likely to enable the creation or management of attestations during the job execution.
2025-11-16 18:12:03 +08:00
xixu-me 12228bb98f Update Docker workflow and badges in README files
Added Docker badge and updated Cloudflare Workers badge links in both English and Chinese README files. In the GitHub Actions workflow, assigned an id to the Docker build-and-push step and updated the provenance attestation to use the correct digest output.
2025-11-16 18:09:48 +08:00
xixu-me 93c8e51fb1 Update docs, Dockerfile, and CI for container registry support
Expanded documentation in both English and Chinese READMEs to include detailed container registry acceleration usage and deployment instructions. Refactored Dockerfile to use a multi-stage build with workerd for self-hosted deployment. Improved .dockerignore for cleaner builds. Updated GitHub Actions workflows to refine path ignores and metadata extraction. Added config.capnp for workerd configuration. Removed obsolete .html file and enhanced CLAUDE.md with comprehensive architecture and development guidance.
2025-11-16 17:46:48 +08:00
xixu-meandCopilot Autofix powered by AI 81697a7b66 Potential fix for code scanning alert no. 8: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-11-07 13:36:51 +08:00
xixu-me 8d482085e2 Merge pull request #83 from xixu-me/dependabot/github_actions/actions/attest-build-provenance-3
ci(deps): bump actions/attest-build-provenance from 1 to 3
2025-11-07 13:30:33 +08:00
xixu-me 9e495a3413 Merge pull request #84 from xixu-me/dependabot/github_actions/actions/checkout-5
ci(deps): bump actions/checkout from 4 to 5
2025-11-07 13:30:10 +08:00
xixu-me 9db310df0c Merge pull request #85 from xixu-me/dependabot/github_actions/github/codeql-action-4
ci(deps): bump github/codeql-action from 3 to 4
2025-11-07 13:29:49 +08:00
dependabot[bot] eec53570f2 ci(deps): bump docker/build-push-action from 5 to 6
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 05:27:20 +00:00
dependabot[bot] bcfe548156 ci(deps): bump github/codeql-action from 3 to 4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 05:27:16 +00:00
dependabot[bot] 15e2dc0383 ci(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 05:27:12 +00:00
dependabot[bot] 710667f1e2 ci(deps): bump actions/attest-build-provenance from 1 to 3
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 1 to 3.
- [Release notes](https://github.com/actions/attest-build-provenance/releases)
- [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md)
- [Commits](https://github.com/actions/attest-build-provenance/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/attest-build-provenance
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 05:27:08 +00:00
xixu-me 29c25f3a96 Add Dependabot config and simplify deploy workflow
Introduces .github/dependabot.yml to automate dependency updates for npm and GitHub Actions. Streamlines the deploy job in depoly.yml by removing setup, install, lint, type-check, and test steps, focusing only on code checkout and deployment via Wrangler.
2025-11-07 13:26:23 +08:00
xixu-me 918b651697 Add GitHub Actions deploy workflow and update docs
Introduced a new GitHub Actions workflow for automatic deployment to Cloudflare Workers. Added CLAUDE.md for Claude Code guidance. Updated deployment instructions in both English and Chinese README files to reflect the new GitHub Actions-based deployment process.
2025-11-07 13:19:24 +08:00
xixu-me 635373a319 Remove English README and translation workflow
Deleted the auto-translation GitHub Actions workflow and the generated README.en.md file. Updated README.md, likely to remove references to the English version and translation automation.
2025-08-31 21:52:46 +08:00
xixu-me b4aed525f7 Improve README translation workflow with chunked processing
Replaces the previous DeepL GitHub Action with a custom Node.js script that splits README.md into chunks for translation, improving handling of large files and preserving structure. Adds steps to set up Node.js, install dependencies, and process translation in segments, with enhanced commit messages reflecting translation statistics and features.
2025-08-31 21:43:02 +08:00
xixu-me 06fdfcf2ae Update DeepL translate action to v2.2.0
Bump lyqht/deepl-translate-github-action from v2.1.1 to v2.2.0 in the translate-readme workflow for improved features and fixes.
2025-08-31 21:27:42 +08:00
xixu-me b7a590808a Add workflow to auto-translate README and enable arxiv platform
Introduces a GitHub Actions workflow to automatically translate README.md to English using DeepL, update language links, and add a translation disclaimer. Also enables the 'arxiv' platform in the platforms configuration.
2025-08-31 21:16:03 +08:00
xixu-me 58a0835213 Ignore docs and config files in CI workflow triggers
Updated the GitHub Actions workflow to ignore changes in markdown files, documentation, test, scripts, and common config files when triggering on push and pull_request events. This reduces unnecessary workflow runs for non-code changes.
2025-08-19 21:44:49 +08:00
xixu-me f2cbc870d7 Rename docker workflow to image and update labels
Renamed the workflow file from docker.yml to image.yml and updated workflow and step names to use 'Image' instead of 'Docker'. This improves clarity and generalizes the workflow for building and pushing images.
2025-08-19 21:35:43 +08:00
xixu-me a800fd9082 Fix Trivy scan to use correct image tag
Introduced a step to extract the first image tag from build outputs and use it as the image reference for the Trivy vulnerability scanner. This ensures the scanner analyzes the correct image version.
2025-08-19 21:25:23 +08:00
xixu-me 5c9c02008e Update Trivy scan to use tag instead of digest
Added debug output steps and changed the Trivy vulnerability scanner to reference the image by tag (${github.ref_name}) instead of digest. This helps with debugging and aligns the scan with the tagged image.
2025-08-19 21:21:45 +08:00
xixu-me 28b23f31bd Update Docker workflow to use image digest for Trivy scan
Adds outputs for image tags and digest in the build-and-push job and updates the Trivy scanner to reference the image by digest instead of the latest tag. This ensures the vulnerability scan is performed on the exact built image.
2025-08-19 21:11:16 +08:00
xixu-me 4fc2cc8002 Add attestations permission to Docker workflow
Grants the 'attestations: write' permission in the GitHub Actions Docker workflow to enable writing attestations. This may be required for enhanced security or provenance features.
2025-08-19 21:04:37 +08:00
xixu-me 2cc93ba0ce Fix Docker digest output reference in workflow
Updates the GitHub Actions workflow to use the correct step ID 'build-and-push' for the Docker image digest output, ensuring the provenance attestation references the correct value.
2025-08-19 21:00:48 +08:00
xixu-me f01acfa0bb Add id-token write permission to Docker workflow
Grants the workflow 'id-token: write' permission, which may be required for certain authentication steps or integrations in the Docker build and publish process.
2025-08-19 20:55:47 +08:00
xixu-me 4d47c42084 Add Docker support and server entrypoint
Introduced Dockerfile, .dockerignore, and GitHub Actions workflow for building and publishing Docker images. Added server.js as the Express entrypoint for standalone deployment. Updated README with Docker, Docker Compose, and Kubernetes deployment instructions.
2025-08-19 20:37:29 +08:00
xixu-me 65300f2a3d Remove Dependabot and deploy workflow configs
Deleted .github/dependabot.yml and .github/workflows/deploy.yml to disable automated dependency updates and deployment to Cloudflare Workers.
2025-07-24 20:06:12 +08:00
xixu-me 8f895cdcb2 Update deploy.yml 2025-06-27 10:58:10 +08:00
xixu-me 248b58db58 Update deploy.yml 2025-01-10 17:08:04 +08:00
xixu-me d411a3627f Create deploy.yml 2024-11-02 19:20:33 +08:00