Skip to content
64 linesCodeBlameRaw

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Merge branch 'worktree-agent-a4d35ee70c50683d0' into claude/cool-newton-7nm8r91name: Deploy to g1t.page
2description: Builds this checkout and puts it on g1t.page. Production from the project's production branch, a preview from a pull request or any other branch.
3author: g1t
4
5inputs:
6 project:
7 description: The project's slug. Leave it out when the repository has one project with Deployments on.
8 required: false
9 default: ""
10 root-dir:
11 description: Where the project is in the checkout. The project's own setting unless you say.
12 required: false
13 default: ""
14 build-command:
g1t.page builds know the framework a project is built with, from its package's dependencies and config files: Vite (and React, Vue, Svelte, Solid or Preact on it), Astro, Next.js with `output: 'export'`, SvelteKit with the static adapter, Nuxt by `nuxi generate`, React Router and Remix in SPA mode, Gatsby, Docusaurus, Eleventy, Angular, Create React App, Hugo, Jekyll and mdBook are each built with their own command and served from the folder they write, read from their config where it moves it. A Cloudflare adapter's Worker deploys as a Workers project with no Wrangler config of the project's own: Astro's, which now writes its config for wrangler in `.wrangler/deploy/config.json` (as `@cloudflare/vite-plugin` does, and that is read too), SvelteKit's `.svelte-kit/cloudflare/_worker.js`, and OpenNext's with a `wrangler.jsonc`; a site's `_worker.js`, `_routes.json` and what `.assetsignore` lists are never uploaded, and a written config's empty binding lists are no longer warned about. A framework set up to need a server (Next.js without a static export, Astro's server output, SvelteKit's auto or node adapter, a server-rendered React Router or Remix app) fails before anything is installed, saying what to change, in place of "found nothing to serve". The project's Build command and Output directory still win. The build's log names the framework, the finish report carries it as `framework` (which the deployments service ignores for now), and `g1t-runner detect` and the `g1t/detect` action output it. What deploys has a table of every framework, and the detect action's README lists them.15 description: What builds it. The project's own setting, else what the build finds (a Workers config, the package's build script, or the framework's own command).
Merge branch 'worktree-agent-a4d35ee70c50683d0' into claude/cool-newton-7nm8r916 required: false
17 default: ""
18 output-dir:
g1t.page builds know the framework a project is built with, from its package's dependencies and config files: Vite (and React, Vue, Svelte, Solid or Preact on it), Astro, Next.js with `output: 'export'`, SvelteKit with the static adapter, Nuxt by `nuxi generate`, React Router and Remix in SPA mode, Gatsby, Docusaurus, Eleventy, Angular, Create React App, Hugo, Jekyll and mdBook are each built with their own command and served from the folder they write, read from their config where it moves it. A Cloudflare adapter's Worker deploys as a Workers project with no Wrangler config of the project's own: Astro's, which now writes its config for wrangler in `.wrangler/deploy/config.json` (as `@cloudflare/vite-plugin` does, and that is read too), SvelteKit's `.svelte-kit/cloudflare/_worker.js`, and OpenNext's with a `wrangler.jsonc`; a site's `_worker.js`, `_routes.json` and what `.assetsignore` lists are never uploaded, and a written config's empty binding lists are no longer warned about. A framework set up to need a server (Next.js without a static export, Astro's server output, SvelteKit's auto or node adapter, a server-rendered React Router or Remix app) fails before anything is installed, saying what to change, in place of "found nothing to serve". The project's Build command and Output directory still win. The build's log names the framework, the finish report carries it as `framework` (which the deployments service ignores for now), and `g1t-runner detect` and the `g1t/detect` action output it. What deploys has a table of every framework, and the detect action's README lists them.19 description: The folder a static build writes. The project's own setting, else the folder the framework writes, else the first of dist, build, out, public, _site or .output/public.
Merge branch 'worktree-agent-a4d35ee70c50683d0' into claude/cool-newton-7nm8r920 required: false
21 default: ""
Merge branch 'worktree-agent-a0d1a64e2033a58ed' into claude/cool-newton-7nm8r922 build-as:
23 description: What it is built as, auto, static, workers or docker. The project's own setting unless you say; auto finds it from the project's files.
24 required: false
25 default: ""
26 dockerfile:
27 description: The Dockerfile a container is built from, relative to the project. The project's setting, else Dockerfile or Containerfile.
28 required: false
29 default: ""
Merge branch 'worktree-agent-a4d35ee70c50683d0' into claude/cool-newton-7nm8r930 sha:
31 description: The commit this is a build of, for the commit's g1t / deploy check. The run's commit unless you say.
32 required: false
33 default: ""
34 token:
35 description: The job's own token, which needs permissions deployments write. Another token is refused.
36 required: false
37 default: ${{ github.token }}
38
39outputs:
40 url:
41 description: Where the app is served, on g1t.page.
42 value: ${{ steps.deploy.outputs.url }}
43 deployment-id:
44 description: The build's id, dpl_….
45 value: ${{ steps.deploy.outputs.deployment-id }}
46 kind:
47 description: production or preview.
48 value: ${{ steps.deploy.outputs.kind }}
49
50runs:
51 using: composite
52 steps:
53 - id: deploy
54 shell: bash
55 env:
56 INPUT_PROJECT: ${{ inputs.project }}
57 INPUT_ROOT_DIR: ${{ inputs.root-dir }}
58 INPUT_BUILD_COMMAND: ${{ inputs.build-command }}
59 INPUT_OUTPUT_DIR: ${{ inputs.output-dir }}
Merge branch 'worktree-agent-a0d1a64e2033a58ed' into claude/cool-newton-7nm8r960 INPUT_BUILD_AS: ${{ inputs.build-as }}
61 INPUT_DOCKERFILE: ${{ inputs.dockerfile }}
Merge branch 'worktree-agent-a4d35ee70c50683d0' into claude/cool-newton-7nm8r962 INPUT_SHA: ${{ inputs.sha }}
63 INPUT_TOKEN: ${{ inputs.token }}
64 run: bash "$GITHUB_ACTION_PATH/deploy.sh"

This file's history is long; its oldest lines are credited to the oldest commit read.