Skip to content
54 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 'claude/cool-newton-7nm8r9' (#36): real GitHub Actions on g1t, managed deploy workflows, g1t/deploy and the Sysbox runner 0.2.0. The merge keeps both sides' webhook events and API operations, says agent images need tar, guards the job engine's stop to Unix so the runner builds on Windows again, and keeps the moves tests' previews from going idle as the calendar passes their fixture's date.1name: 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:
15 description: What builds it. The project's own setting, else what the build finds (a Workers config, or the package's build script).
16 required: false
17 default: ""
18 output-dir:
19 description: The folder a static build writes. The project's own setting, else the first of dist, build, out, public, _site or .output/public.
20 required: false
21 default: ""
22 sha:
23 description: The commit this is a build of, for the commit's g1t / deploy check. The run's commit unless you say.
24 required: false
25 default: ""
26 token:
27 description: The job's own token, which needs permissions deployments write. Another token is refused.
28 required: false
29 default: ${{ github.token }}
30
31outputs:
32 url:
33 description: Where the app is served, on g1t.page.
34 value: ${{ steps.deploy.outputs.url }}
35 deployment-id:
36 description: The build's id, dpl_….
37 value: ${{ steps.deploy.outputs.deployment-id }}
38 kind:
39 description: production or preview.
40 value: ${{ steps.deploy.outputs.kind }}
41
42runs:
43 using: composite
44 steps:
45 - id: deploy
46 shell: bash
47 env:
48 INPUT_PROJECT: ${{ inputs.project }}
49 INPUT_ROOT_DIR: ${{ inputs.root-dir }}
50 INPUT_BUILD_COMMAND: ${{ inputs.build-command }}
51 INPUT_OUTPUT_DIR: ${{ inputs.output-dir }}
52 INPUT_SHA: ${{ inputs.sha }}
53 INPUT_TOKEN: ${{ inputs.token }}
54 run: bash "$GITHUB_ACTION_PATH/deploy.sh"

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