{"id":28343280,"url":"https://github.com/tencentedgeone/deploy-with-github-actions","last_synced_at":"2025-09-19T10:09:58.916Z","repository":{"id":295044338,"uuid":"988904851","full_name":"TencentEdgeOne/deploy-with-github-actions","owner":"TencentEdgeOne","description":"This project demonstrates how to deploy a project to EdgeOne Pages via GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-05-27T12:04:30.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-19T19:42:57.038Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://edgeone.ai/products/pages","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TencentEdgeOne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-23T08:54:22.000Z","updated_at":"2025-05-29T07:42:24.000Z","dependencies_parsed_at":"2025-05-26T07:19:49.180Z","dependency_job_id":null,"html_url":"https://github.com/TencentEdgeOne/deploy-with-github-actions","commit_stats":null,"previous_names":["tencentedgeone/deploy-with-github-actions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TencentEdgeOne/deploy-with-github-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentEdgeOne%2Fdeploy-with-github-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentEdgeOne%2Fdeploy-with-github-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentEdgeOne%2Fdeploy-with-github-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentEdgeOne%2Fdeploy-with-github-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TencentEdgeOne","download_url":"https://codeload.github.com/TencentEdgeOne/deploy-with-github-actions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TencentEdgeOne%2Fdeploy-with-github-actions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275918659,"owners_count":25552458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-27T06:57:03.252Z","updated_at":"2025-09-19T10:09:58.907Z","avatar_url":"https://github.com/TencentEdgeOne.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Project Deployment to EdgeOne Pages\n\nThis is a Next.js template project that uses GitHub Actions for building and deployment to [EdgeOne Pages](https://edgeone.ai/products/pages).\n\n## Project Overview\n\nThis project provides a starter template for Next.js applications, integrating GitHub Actions workflows and automatic deployment functionality.\n\nComplete `.github/workflows/deploy.yml` configuration is as follows:\n\n```yml\nname: Build and Deploy\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  build-and-deploy:\n    runs-on: ubuntu-latest\n    \n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n      \n      - name: Setup Node.js\n        uses: actions/setup-node@v4\n        with:\n          node-version: 20\n      \n      - name: Install dependencies\n        run: npm install\n      \n      - name: Build project\n        run: npm run build\n      \n      - name: Deploy to EdgeOne Pages\n        run: npx edgeone pages deploy ./out --name my-edgeone-pages-project --token ${{ secrets.EDGEONE_API_TOKEN }}\n        env:\n          EDGEONE_API_TOKEN: ${{ secrets.EDGEONE_API_TOKEN }}\n```\n\n## Step 1: GitHub Actions Build\n\nThis project uses [GitHub Actions](https://docs.github.com/en/actions) for automated building. When code is pushed to the main branch, it triggers the following build process:\n\n1. Checkout the repository code\n2. Setup Node.js 20 environment\n3. Install project dependencies\n4. Build the project using Next.js\n\n## Step 2: EdgeOne Pages Deployment\n\nAfter the build completes, the project is automatically deployed to [EdgeOne Pages](https://edgeone.ai/products/pages) through the following process:\n\n1. The build phase generates the `./out` directory\n2. The EdgeOne command line tool is used for deployment:\n   ```bash\n   npx edgeone pages deploy ./out --name my-edgeone-pages-project --token ${{ secrets.EDGEONE_API_TOKEN }}\n   ```\n\n## Setting Up the Repository Secret\n\nTo deploy to EdgeOne Pages, you need to add your `EDGEONE_API_TOKEN` as a repository secret in GitHub:\n\n1. Navigate to your GitHub repository\n2. Go to \"Settings\" \u003e \"Secrets and variables\" \u003e \"Actions\"\n3. Click \"New repository secret\"\n4. Name: `EDGEONE_API_TOKEN`\n5. Value: Your EdgeOne API token\n\nObtain your `EDGEONE_API_TOKEN` from EdgeOne Pages by visiting: https://edgeone.ai/document/177158578324279296\n\n# References\n\n- EdgeOne Pages Documentation: https://edgeone.ai/document/160427672992178176\n- GitHub Actions Documentation: https://docs.github.com/en/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftencentedgeone%2Fdeploy-with-github-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftencentedgeone%2Fdeploy-with-github-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftencentedgeone%2Fdeploy-with-github-actions/lists"}