From 1968ec7f19c479fa08d51c7e0b89324e64106d51 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 16 Dec 2025 17:04:59 -0300 Subject: [PATCH] Revert "Disable CI" This reverts commit 6d44043250e926a1a509c88347b4738b413fbacc. --- .forgejo/workflows/botplugin.yaml | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .forgejo/workflows/botplugin.yaml diff --git a/.forgejo/workflows/botplugin.yaml b/.forgejo/workflows/botplugin.yaml new file mode 100644 index 0000000..a6ce657 --- /dev/null +++ b/.forgejo/workflows/botplugin.yaml @@ -0,0 +1,51 @@ +name: GBCI + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +jobs: + build: + runs-on: gbo + + steps: + - name: Disable SSL verification (temporary) + run: git config --global http.sslVerify false + + - uses: actions/checkout@v4 + + - name: Install zip utility + run: | + which zip || sudo apt-get update && sudo apt-get install -y zip + + - name: Generate extension ZIP + run: | + VERSION=$(jq -r '.version' manifest.json) + ZIP_NAME="general-bots-extension-v${VERSION}.zip" + + zip -r "$ZIP_NAME" \ + manifest.json \ + background.js \ + content.js \ + popup.html \ + popup.js \ + popup.css \ + options.html \ + styles.css \ + icons/ + + echo "Created: $ZIP_NAME" + ls -la "$ZIP_NAME" + + - name: Deploy extension ZIP + run: | + VERSION=$(jq -r '.version' manifest.json) + ZIP_NAME="general-bots-extension-v${VERSION}.zip" + + sudo mkdir -p /opt/gbo/releases/botplugin + sudo cp "$ZIP_NAME" /opt/gbo/releases/botplugin/ + sudo cp "$ZIP_NAME" /opt/gbo/releases/botplugin/general-bots-extension-latest.zip + + echo "Deployed extension to /opt/gbo/releases/botplugin/"