Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
6a8036a
refactor: update Knip configuration and add eslint-disable comment in…
Keyrxng Nov 21, 2025
1204af3
chore: update dependencies to latest versions and modify TypeScript m…
Keyrxng Nov 21, 2025
8fa7990
chore: clamp @ubiquity-os/plugin-sdk and @ubiquity-os/ubiquity-os-log…
Keyrxng Nov 22, 2025
489bfed
refactor: remove unused customOctokit import from context type defini…
Keyrxng Nov 26, 2025
9906dd6
Merge pull request #59 from ubq-testing/development
gentlementlegen Nov 30, 2025
57902d9
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Dec 2, 2025
eb7108b
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Dec 8, 2025
c6a095b
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Dec 14, 2025
5646df1
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Dec 14, 2025
1880402
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Dec 23, 2025
2dba34b
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Jan 15, 2026
38bb96f
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Jan 20, 2026
36594ba
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Jan 24, 2026
53d29ad
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Jan 24, 2026
cbd9fb2
chore: [skip ci] update labels configuration
ubiquity-os-beta[bot] Jan 24, 2026
b8bec92
fix: pin manifest workflow to issue-27 deploy action
gentlementlegen Feb 10, 2026
069b5e3
chore: [skip ci] updated manifest.json and dist build
github-actions[bot] Feb 10, 2026
2a98864
chore: migrate workflows to artifact branch model
gentlementlegen Feb 10, 2026
c0c935d
chore: update workflow and description for consistency and event excl…
gentlementlegen Feb 11, 2026
a4165ce
chore: update workflow and description for consistency and event excl…
gentlementlegen Feb 11, 2026
cd52a8c
chore: [skip ci] updated manifest.json and dist build
github-actions[bot] Feb 11, 2026
aa7b211
chore: update dependencies and development tools to latest versions
gentlementlegen Feb 11, 2026
6c6d322
Merge remote-tracking branch 'mentlegen/codex/fix/manifest-build' int…
gentlementlegen Feb 11, 2026
66bc756
chore: [skip ci] updated manifest.json and dist build
github-actions[bot] Feb 11, 2026
2d4f938
Merge branch 'development' into codex/fix/manifest-build
gentlementlegen Feb 11, 2026
c489871
Merge pull request #60 from gentlementlegen/codex/fix/manifest-build
gentlementlegen Feb 11, 2026
9616a0d
chore: switch action-deploy-plugin source to ubiquity-os
gentlementlegen Feb 21, 2026
7a6ab2e
chore: pin action-deploy-plugin to v1.2.0
gentlementlegen Feb 21, 2026
2b30b33
chore: [skip ci] updated manifest.json and dist build
github-actions[bot] Feb 21, 2026
8de2a86
chore: use main deploy action and remove committed artifacts
gentlementlegen Feb 22, 2026
38fa9d5
fix: set deploy action ref to @main
gentlementlegen Feb 22, 2026
443adf1
chore: route deploy output to artifact branch action
gentlementlegen Feb 22, 2026
8bd04c0
chore: add local manifest prepare bootstrap
gentlementlegen Feb 23, 2026
33478ad
fix: inline manifest prepare and target deploy action main
gentlementlegen Feb 23, 2026
e2b130d
chore: use plugin-manifest-tool package for manifest generation
gentlementlegen Feb 23, 2026
2b0f320
fix: generate manifest on install for tests and deploy
gentlementlegen Feb 23, 2026
c32781c
fix: install dependencies before deno deploy
gentlementlegen Feb 23, 2026
dfbba9f
fix(ci): setup deno before install-time manifest generation
gentlementlegen Feb 23, 2026
fddca3a
fix(prepare): use published manifest tool dist-tag
gentlementlegen Feb 23, 2026
299194d
fix(knip): use bunx for manifest prepare script
gentlementlegen Feb 23, 2026
5997947
chore(ci): remove redundant setup-deno steps
gentlementlegen Feb 23, 2026
f9dff67
fix(manifest): derive short_name from CI repository context
gentlementlegen Feb 24, 2026
c17db87
fix(workflows): pin deploy action ref and source branch input
gentlementlegen Feb 24, 2026
4fb13ba
fix(workflows): use artifact deploy action branch for dist publish
gentlementlegen Feb 24, 2026
88bf5b2
fix(ci): align deploy workflows with artifact defaults
gentlementlegen Mar 9, 2026
881a609
chore: merge upstream development into artifact migration
gentlementlegen Mar 9, 2026
d7c12c7
fix(build): align schema option types for ncc
gentlementlegen Mar 9, 2026
99932cf
refactor(build): simplify schema casts without local option types
gentlementlegen Mar 9, 2026
07f0592
Merge pull request #63 from ubiquity-os/feat/320-workflow-artifact-mi…
gentlementlegen Mar 9, 2026
1c27a9c
chore(ci): consolidate deploy workflows
gentlementlegen Mar 12, 2026
4d93b09
style: format update-configuration workflow
gentlementlegen Mar 12, 2026
17d1f1c
fix: align deploy defaults and env examples
gentlementlegen Mar 12, 2026
8a750a0
fix: add types barrel for deno resolution
gentlementlegen Mar 12, 2026
651ad6f
fix: use extensionless types re-export
gentlementlegen Mar 12, 2026
349787d
Merge pull request #64 from ubiquity-os/chore/consolidate-deploy-work…
gentlementlegen Mar 17, 2026
8747610
fix: changed SDK version and update-configuration.yml workflow
gentlementlegen Apr 7, 2026
6fa3cb8
chore: added default ignored event
gentlementlegen Apr 7, 2026
7aa4852
chore: align deno deploy workflow and runtime manifest
gentlementlegen Apr 9, 2026
94d793c
fix: add json import attributes for deno
gentlementlegen Apr 9, 2026
5e03fa7
chore: point deno-deploy action to main
gentlementlegen Apr 9, 2026
df7e03a
Merge pull request #65 from ubiquity-os/issue-17-deno-deploy-workflow
gentlementlegen Apr 10, 2026
2b55bf3
fix: align deno runtime env handling
gentlementlegen Apr 13, 2026
fa164ef
fix: address non-transitive CI failures
gentlementlegen Apr 13, 2026
9ddb636
fix: widen runtime env typing
gentlementlegen Apr 13, 2026
9f80a88
chore: upgrade @ubiquity-os/plugin-sdk to 3.12.8
gentlementlegen Apr 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MY_SECRET="MY_SECRET"
# Optional/defaulted environment variables are defined in src/types/env.ts.
7 changes: 3 additions & 4 deletions .github/knip.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { KnipConfig } from "knip";

const config: KnipConfig = {
entry: ["src/action.ts", "src/worker.ts"],
project: ["src/", "test/"],
entry: ["src/action.ts"],
project: ["src/**/*.ts", "tests/**/*.ts"],
ignore: ["src/types/config.ts", "**/__mocks__/**", "**/__fixtures__/**"],
ignoreExportsUsedInFile: true,
// eslint can also be safely ignored as per the docs: https://knip.dev/guides/handling-issues#eslint--jest
ignoreDependencies: ["ts-node", "husky"],
ignoreDependencies: ["ts-node"],
eslint: true,
};

Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/deno-deploy.yml

This file was deleted.

166 changes: 161 additions & 5 deletions .github/workflows/update-configuration.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,177 @@
name: "Update Configuration and Build"
name: "Deploy"

on:
workflow_dispatch:
inputs:
build_action_enabled:
description: "Publish GitHub Action artifacts to dist/<ref>."
required: false
default: "true"
type: choice
options:
- "true"
- "false"
deploy_deno_enabled:
description: "Deploy Worker to Deno Deploy."
required: false
default: "true"
type: choice
options:
- "true"
- "false"
skip_bot_events:
description: "manifest.skipBotEvents value for generated manifest."
required: false
default: "false"
exclude_supported_events:
description: "Comma-separated supported events to exclude from manifest listeners."
required: false
default: "issue_comment.created,pull_request_review_comment.created"
push:
branches-ignore:
- "dist/**"
tags-ignore:
- "*"
delete:

jobs:
update:
name: "Update Configuration & Build"
resolve-context:
name: "Resolve Context"
runs-on: ubuntu-latest
permissions: read-all
env:
BUILD_ACTION_ENABLED: ${{ github.event_name == 'workflow_dispatch' && inputs.build_action_enabled || vars.BUILD_ACTION_ENABLED || 'true' }}
DEPLOY_DENO_ENABLED: ${{ github.event_name == 'workflow_dispatch' && inputs.deploy_deno_enabled || vars.DEPLOY_DENO_ENABLED || 'true' }}
SKIP_BOT_EVENTS: ${{ github.event_name == 'workflow_dispatch' && inputs.skip_bot_events || vars.SKIP_BOT_EVENTS || 'false' }}
EXCLUDE_SUPPORTED_EVENTS: ${{ github.event_name == 'workflow_dispatch' && inputs.exclude_supported_events || vars.EXCLUDE_SUPPORTED_EVENTS || 'issue_comment.created,pull_request_review_comment.created' }}
outputs:
source_ref: ${{ steps.refs.outputs.source_ref }}
is_tag_ref: ${{ steps.refs.outputs.is_tag_ref }}
is_dist_ref: ${{ steps.refs.outputs.is_dist_ref }}
build_action_enabled: ${{ steps.config.outputs.build_action_enabled }}
deploy_deno_enabled: ${{ steps.config.outputs.deploy_deno_enabled }}
skip_bot_events: ${{ steps.config.outputs.skip_bot_events }}
exclude_supported_events: ${{ steps.config.outputs.exclude_supported_events }}
should_publish_action_artifact: ${{ steps.config.outputs.should_publish_action_artifact }}
should_run_deno: ${{ steps.config.outputs.should_run_deno }}
artifact_environment: ${{ steps.config.outputs.artifact_environment }}
deno_environment: ${{ steps.config.outputs.deno_environment }}
artifact_action: ${{ steps.config.outputs.artifact_action }}
deno_action: ${{ steps.config.outputs.deno_action }}

steps:
- name: Resolve source ref
id: refs
shell: bash
run: |
source_ref="$(echo '${{ github.event.ref || github.event.workflow_run.head_branch || github.ref }}' | sed 's#refs/heads/##' | sed 's#refs/tags/##')"
if [[ -z "$source_ref" ]]; then
source_ref="${GITHUB_REF_NAME}"
fi

is_tag_ref="false"
if [[ "${{ github.event.ref_type || '' }}" == "tag" ]] || [[ "${GITHUB_REF:-}" == refs/tags/* ]]; then
is_tag_ref="true"
fi

is_dist_ref="false"
if [[ "$source_ref" == dist/* ]]; then
is_dist_ref="true"
fi

echo "source_ref=$source_ref" >> "$GITHUB_OUTPUT"
echo "is_tag_ref=$is_tag_ref" >> "$GITHUB_OUTPUT"
echo "is_dist_ref=$is_dist_ref" >> "$GITHUB_OUTPUT"

- name: Resolve deployment settings
id: config
shell: bash
env:
SOURCE_REF: ${{ steps.refs.outputs.source_ref }}
IS_TAG_REF: ${{ steps.refs.outputs.is_tag_ref }}
IS_DIST_REF: ${{ steps.refs.outputs.is_dist_ref }}
run: |
artifact_environment="development"
deno_environment="development"
if [[ "$SOURCE_REF" == "main" || "$SOURCE_REF" == "demo" ]]; then
artifact_environment="main"
deno_environment="main"
fi

artifact_action="publish"
deno_action="provision"
if [[ "${{ github.event_name }}" == "delete" ]]; then
artifact_action="delete"
deno_action="delete"
fi

should_publish_action_artifact="false"
if [[ "$BUILD_ACTION_ENABLED" == "true" && "$IS_TAG_REF" != "true" && "$IS_DIST_REF" != "true" ]]; then
should_publish_action_artifact="true"
fi

should_run_deno="false"
if [[ "$DEPLOY_DENO_ENABLED" == "true" && "$IS_TAG_REF" != "true" && "$IS_DIST_REF" != "true" ]]; then
should_run_deno="true"
fi

echo "build_action_enabled=$BUILD_ACTION_ENABLED" >> "$GITHUB_OUTPUT"
echo "deploy_deno_enabled=$DEPLOY_DENO_ENABLED" >> "$GITHUB_OUTPUT"
echo "skip_bot_events=$SKIP_BOT_EVENTS" >> "$GITHUB_OUTPUT"
echo "exclude_supported_events=$EXCLUDE_SUPPORTED_EVENTS" >> "$GITHUB_OUTPUT"
echo "artifact_environment=$artifact_environment" >> "$GITHUB_OUTPUT"
echo "deno_environment=$deno_environment" >> "$GITHUB_OUTPUT"
echo "artifact_action=$artifact_action" >> "$GITHUB_OUTPUT"
echo "deno_action=$deno_action" >> "$GITHUB_OUTPUT"
echo "should_publish_action_artifact=$should_publish_action_artifact" >> "$GITHUB_OUTPUT"
echo "should_run_deno=$should_run_deno" >> "$GITHUB_OUTPUT"

publish-action-artifact:
name: "Publish Action Artifact"
needs: resolve-context
if: ${{ needs.resolve-context.outputs.should_publish_action_artifact == 'true' }}
runs-on: ubuntu-latest
permissions: write-all
environment: ${{ needs.resolve-context.outputs.artifact_environment }}

steps:
- uses: ubiquity-os/action-deploy-plugin@main
- name: Publish action artifact branch
uses: ubiquity-os/action-deploy-plugin@main
with:
action: ${{ needs.resolve-context.outputs.artifact_action }}
treatAsEsm: true
sourcemap: true
pluginEntry: "${{ github.workspace }}/src/action.ts"
pluginEntry: "${{ github.workspace }}/src/worker.ts"
excludeSupportedEvents: ${{ needs.resolve-context.outputs.exclude_supported_events }}
skipBotEvents: ${{ needs.resolve-context.outputs.skip_bot_events }}
env:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}

deploy-deno:
name: "Provision Deno App"
needs: resolve-context
if: ${{ needs.resolve-context.outputs.should_run_deno == 'true' }}
runs-on: ubuntu-latest
permissions: write-all
environment: ${{ needs.resolve-context.outputs.deno_environment }}

steps:
- uses: actions/checkout@v6
if: ${{ needs.resolve-context.outputs.deno_action != 'delete' }}

- uses: ubiquity-os/deno-deploy@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KERNEL_PUBLIC_KEY: ${{ secrets.KERNEL_PUBLIC_KEY }}
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
APP_INSTALLATION_ID: ${{ secrets.APP_INSTALLATION_ID }}
LOG_LEVEL: ${{ secrets.LOG_LEVEL }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
with:
token: ${{ secrets.DENO_DEPLOY_TOKEN }}
action: ${{ needs.resolve-context.outputs.deno_action }}
app: ${{ secrets.DENO_PROJECT_NAME }}
entrypoint: src/worker.ts
40 changes: 0 additions & 40 deletions .github/workflows/worker-delete.yml

This file was deleted.

107 changes: 0 additions & 107 deletions .github/workflows/worker-deploy.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ cypress/screenshots
script.ts
.wrangler
test-dashboard.md

manifest.json
dist/
Loading
Loading