Commit Graph
86 Commits
Author SHA1 Message Date
xixu-me 84ec8d0290 Merge pull request #212 from xixu-me/dependabot/github_actions/docker/metadata-action-6
ci(deps): bump docker/metadata-action from 5 to 6
2026-03-09 18:24:39 +08:00
xixu-me 4a1411bd38 Merge pull request #211 from xixu-me/dependabot/github_actions/docker/build-push-action-7
ci(deps): bump docker/build-push-action from 6 to 7
2026-03-09 18:24:23 +08:00
dependabot[bot] 99e430493e ci(deps): bump docker/metadata-action from 5 to 6
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5 to 6.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5...v6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 09:11:24 +00:00
dependabot[bot] 45b285ed61 ci(deps): bump docker/build-push-action from 6 to 7
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6 to 7.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6...v7)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 09:11:20 +00:00
dependabot[bot] c0c4c35129 ci(deps): bump docker/setup-buildx-action from 3 to 4
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 09:11:16 +00:00
xixu-me 09c50c136f chore(repo): enforce conventional commits 2026-03-06 19:13:59 +08:00
xixu-me 34a36b4ccc ci: publish multi-arch image for amd64 and arm64
Resolves #178
2026-03-06 18:45:10 +08:00
dependabot[bot] d8b38f32ee ci(deps): bump actions/attest-build-provenance from 3 to 4
Bumps [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) from 3 to 4.
- [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/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-02 09:14:08 +00:00
xixu-me 69b27ea12a feat: add step to ensure Cloudflare Pages project exists before deployment 2026-02-01 13:20:22 +08:00
xixu-me 4f322650aa fix: update API token reference in deployment workflow and README 2026-01-31 22:53:36 +08:00
xixu-me f7a5822140 ci: add permissions to CI workflow 2026-01-31 22:50:49 +08:00
xixu-me 952c8a446c ci: add CI workflow and gate deployments on CI success
- Add ci.yml with lint, test, and typecheck jobs
- Update workers.yml to trigger on CI workflow completion
- Update sync.yml to trigger on CI workflow completion
- Update image.yml to trigger on CI workflow completion
- Fix pages-eo.yml secret name to match README (EDGEONE_PAGES_API_TOKEN)

Deployment workflows now only run after CI passes, preventing
broken code from being deployed to any platform.
2026-01-31 22:22:10 +08:00
xixu-me 0590cd6796 Delete .github/workflows/ci.yml 2025-12-10 17:45:59 +08:00
xixu-meandCopilot Autofix powered by AI 754c16d618 Potential fix for code scanning alert no. 13: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-12-10 16:58:15 +08:00
xixu-me e35cb142af Increase CI test job timeout to 30 minutes
Extended the timeout for the test job in the CI workflow from 10 to 30 minutes to accommodate longer-running tests and prevent premature job termination.
2025-12-10 16:48:51 +08:00
xixu-me 2c2862cb78 Add multi-platform function adapters and CI workflow
Introduces adapters for Vercel, Netlify Edge, Deno Deploy, and Cloudflare Pages, each with platform-specific entry points and configuration files. Adds a GitHub Actions CI workflow for linting, type checking, and testing. Updates lint scripts to include adapters, improves type annotations in src/index.js, and fixes a type assertion in security tests.
2025-12-10 16:08:10 +08:00
xixu-me 408bf242ad Revert "Add CI workflow and update deployment triggers"
This reverts commit 55e99c9eac.
2025-12-08 19:57:58 +08:00
xixu-me 6eaef41447 Add CI workflow and update deployment triggers
Introduces a new CI workflow for linting, type checking, and testing. Updates sync and workers deployment workflows to trigger on successful completion of the CI workflow instead of direct pushes, improving reliability and sequencing of deployments.
2025-12-08 19:11:44 +08:00
xixu-me ac10e08818 Remove Deno Deploy GitHub Actions workflow
Deleted the .github/workflows/functions-dn.yml file, removing the workflow for deploying to Deno Deploy. This may be due to a change in deployment strategy or deprecation of this workflow.
2025-11-27 17:44:41 +08:00
xixu-me 868d5c8bac Update workflow triggers and permissions in CI configs
Workflows now trigger on both successful workflow runs and manual dispatch events. Increased timeout and moved permissions block for functions-dn workflow to align with job configuration.
2025-11-27 17:41:18 +08:00
xixu-me 955851e722 Update Deno Deploy workflow trigger and concurrency
Change the workflow trigger from push on 'functions' branch to workflow_run on 'main' after 'Sync to Pages and Functions' completes. Add concurrency group to prevent overlapping runs.
2025-11-27 17:21:30 +08:00
xixu-me 3fd5911097 Add GitHub Actions workflow for Deno Deploy
Introduces a workflow to deploy the 'functions' branch to Deno Deploy using denoland actions. The workflow checks out the branch, sets up Deno, verifies the installation, and deploys the project.
2025-11-27 17:20:09 +08:00
xixu-me b273a501b4 Add Deno Deploy handler to workflow
Introduces a step in the GitHub Actions workflow to create a Deno Deploy handler (deno.js) for deployments. The handler adapts the main request handler for Deno's environment, extracting environment variables and providing minimal context support.
2025-11-27 17:05:33 +08:00
xixu-me 15b90aeff8 Add Vercel org and project IDs to workflow env
Sets VERCEL_ORG_ID and VERCEL_PROJECT_ID environment variables in the functions-vc GitHub Actions workflow using repository secrets. This enables the workflow to access Vercel organization and project context during execution.
2025-11-25 18:29:12 +08:00
xixu-me b86c5c2208 Improve environment detection in sync workflow
Enhanced the handler to better distinguish between Netlify, Vercel, and other environments. Environment variable normalization now accounts for different runtime contexts, and warning logs for unsupported features are always shown, not just in non-production.
2025-11-25 18:07:20 +08:00
xixu-me 02d2f71c37 Add Netlify deploy workflow and unify edge handler
Introduces a new GitHub Actions workflow for deploying to Netlify, updates the Vercel workflow name, and refactors the edge function handler to support both Netlify and Vercel platforms with runtime detection. Adds Netlify-specific configuration and redirect files to enable shared handler logic, reducing code duplication and simplifying multi-platform deployments.
2025-11-25 17:55:32 +08:00
xixu-me 39d605ef07 Add Vercel deployment instructions and badge
Added Vercel deployment badge and detailed deployment steps to both English and Chinese README files. Updated the GitHub Actions workflow commit messages to generalize function conversion steps and removed detailed change lists. Minor wording improvements in the Chinese README for consistency.
2025-11-25 16:15:18 +08:00
xixu-me 5117510fc9 Update workflow triggers to new workflow name
Changed workflow_run triggers in deployment workflows to reference the updated workflow name 'Sync to Pages and Functions' instead of the previous names. This ensures deployments are triggered correctly after the new workflow completes.
2025-11-25 14:53:08 +08:00
xixu-me bcd8ab2ce6 Add Vercel Functions workflow and sync automation
Introduces a new GitHub Actions workflow for deploying to Vercel Functions and extends the sync workflow to auto-convert and push the codebase to a 'functions' branch for Vercel deployment. Updates workflow YAML files for consistent quoting and naming, refines documentation in CLAUDE.md for platform support and development, and updates package-lock.json dependencies.
2025-11-25 14:49:42 +08:00
xixu-me 06dd32f03d Merge pull request #116 from xiinc1/dependabot/github_actions/actions/setup-node-6
ci(deps): bump actions/setup-node from 4 to 6
2025-11-24 14:46:34 +08:00
dependabot[bot] cf9002661b ci(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [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/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  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:45:05 +00:00
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