-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
239 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
name: Release Extension | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'extension/**' | ||
workflow_dispatch: | ||
inputs: | ||
version_bump: | ||
description: 'Version bump type' | ||
required: true | ||
default: 'patch' | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
check-changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_release: ${{ steps.check.outputs.changed }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Check for extension changes | ||
id: check | ||
run: | | ||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then | ||
# For manual triggers, check if extension files changed since last tag | ||
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") | ||
if [[ -z "$LAST_TAG" ]]; then | ||
# No tags exist, consider as changed | ||
echo "changed=true" >> $GITHUB_OUTPUT | ||
else | ||
CHANGED_FILES=$(git diff --name-only $LAST_TAG HEAD extension/) | ||
if [[ -n "$CHANGED_FILES" ]]; then | ||
echo "changed=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "changed=false" >> $GITHUB_OUTPUT | ||
fi | ||
fi | ||
else | ||
# For push events, path filter already handled it | ||
echo "changed=true" >> $GITHUB_OUTPUT | ||
fi | ||
build-and-release: | ||
needs: check-changes | ||
if: needs.check-changes.outputs.should_release == 'true' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'npm' | ||
cache-dependency-path: extension/package-lock.json | ||
|
||
- name: Install Dependencies | ||
working-directory: extension | ||
run: npm ci | ||
|
||
- name: Build Extension | ||
working-directory: extension | ||
run: npm run build | ||
|
||
- name: Create ZIP Archive | ||
working-directory: extension/dist | ||
run: zip -r ../../extension.zip . | ||
|
||
- name: Generate Release Tag | ||
id: tag | ||
run: | | ||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then | ||
# Get current version from manifest.json | ||
current_version=$(jq -r '.version' extension/manifest.json) | ||
# Split version into components | ||
IFS='.' read -r major minor patch <<< "$current_version" | ||
case "${{ github.event.inputs.version_bump }}" in | ||
"major") | ||
new_version="$((major + 1)).0.0" | ||
;; | ||
"minor") | ||
new_version="${major}.$((minor + 1)).0" | ||
;; | ||
"patch") | ||
new_version="${major}.${minor}.$((patch + 1))" | ||
;; | ||
esac | ||
echo "tag=v${new_version}" >> $GITHUB_OUTPUT | ||
# Update manifest.json with new version | ||
jq ".version = \"${new_version}\"" extension/manifest.json > temp.json && mv temp.json extension/manifest.json | ||
else | ||
echo "tag=v$(date +'%Y.%m.%d-%H%M')" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.tag.outputs.tag }} | ||
name: Extension Beta ${{ steps.tag.outputs.tag }} | ||
files: extension.zip | ||
prerelease: true | ||
generate_release_notes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"RPC_URL": "https://rpc.nethermind.io/sepolia-juno/?apikey=BqyrrrCXajIYmrrDurtUBKlmsOCGcYCkm4PyBACuMtvtGmwODFz11RikUh1KueKd", | ||
"AGENT_REGISTRY_ADDRESS": "0x00f415ab3f224935ed532dfa06485881c526fef8cb31e6e7e95cafc95fdc5e8d" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "Jack the Ether", | ||
"name": "Teeception", | ||
"version": "1.0.0", | ||
"description": "Pay-to-tweet mechanism for interacting with AI agents on Twitter/X", | ||
"description": "Pay-to-tweet mechanism for interacting with AI agents on X, powered by Starknet, Phala, Cartridge, and Nethermind", | ||
"author": "[email protected]", | ||
"icons": { | ||
"16": "icons/teeception-16.png", | ||
"32": "icons/teeception-32.png", | ||
"48": "icons/teeception-48.png", | ||
"128": "icons/teeception-128.png" | ||
}, | ||
"permissions": [ | ||
"activeTab", | ||
"tabs", | ||
|
@@ -11,12 +18,11 @@ | |
"storage" | ||
], | ||
"host_permissions": [ | ||
"https://*.twitter.com/*" | ||
"https://*.x.com/*" | ||
], | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"https://twitter.com/*", | ||
"https://x.com/*" | ||
], | ||
"css": [ | ||
|
@@ -30,7 +36,13 @@ | |
} | ||
], | ||
"action": { | ||
"default_popup": "index.html" | ||
"default_popup": "index.html", | ||
"default_icon": { | ||
"16": "icons/teeception-16.png", | ||
"32": "icons/teeception-32.png", | ||
"48": "icons/teeception-48.png", | ||
"128": "icons/teeception-128.png" | ||
} | ||
}, | ||
"background": { | ||
"service_worker": "background.js" | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
extension/src/content-script/components/modals/ConfirmationModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.