summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-02-03 11:51:06 +0800
committertranch <tranch.xiao@gmail.com>2026-02-03 11:53:43 +0800
commitcb30744a40cfd3c817c681035a108a8c201ee5f4 (patch)
tree6220faf1682d615961874c52d60136547d7b7726 /.github/workflows
parentf5b06e10aa0515f12df4f88004fe8ed031c58d3a (diff)
downloaddecky-installer-cb30744a40cfd3c817c681035a108a8c201ee5f4.tar.gz
decky-installer-cb30744a40cfd3c817c681035a108a8c201ee5f4.zip
feat: add plugin installer and mock server
Add decky_plugin_installer.py and a Decky mock server for validation, plus related workflow/test updates.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml24
-rw-r--r--.github/workflows/release-on-tag.yml10
2 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..fe82b38
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,24 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Setup Python
+ uses: actions/setup-python@v5
+ with:
+ python-version: "3.11"
+
+ - name: Run tests
+ run: bash test.sh
diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml
index f91b30f..76f06b6 100644
--- a/.github/workflows/release-on-tag.yml
+++ b/.github/workflows/release-on-tag.yml
@@ -14,6 +14,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
+ - name: Generate installer script
+ env:
+ MIRROR_HOST: ${{ vars.MIRROR_HOST }}
+ PLUGIN_MIRROR_HOST: ${{ vars.PLUGIN_MIRROR_HOST }}
+ PLUGIN_ID: ${{ vars.PLUGIN_ID }}
+ run: |
+ sed -i "s|__DECKY_MIRROR_HOST__|$MIRROR_HOST|g" user_install_script.sh
+ sed -i "s|__DECKY_PLUGIN_MIRROR_HOST__|${PLUGIN_MIRROR_HOST}|g" user_install_script.sh
+ sed -i "s|__DECKY_PLUGIN_ID__|${PLUGIN_ID}|g" user_install_script.sh
+
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with: