diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 24 | ||||
| -rw-r--r-- | .github/workflows/release-on-tag.yml | 10 |
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: |
