diff --git a/.github/workflows/sdk-preview.yml b/.github/workflows/sdk-preview.yml index 92b4f454cb..e317845768 100644 --- a/.github/workflows/sdk-preview.yml +++ b/.github/workflows/sdk-preview.yml @@ -1,25 +1,46 @@ -name: "Console SDK Preview" +name: "SDK Preview" on: pull_request: paths: - 'app/config/specs/*-latest-console.json' - + workflow_dispatch: + inputs: + platform: + type: choice + description: "Platform to build" + options: + - client + - server jobs: setup: - name: Setup & Build Console SDK + name: Setup & Build SDK runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 + + - name: Set SDK type + id: set-sdk + run: | + PLATFORM="${{ github.event.inputs.platform }}" + if [ -z "$PLATFORM" ]; then + PLATFORM="console" + fi + if [ "$PLATFORM" = "server" ]; then + echo "sdk_type=nodejs" >> $GITHUB_OUTPUT + else + echo "sdk_type=web" >> $GITHUB_OUTPUT + fi + echo "platform=$PLATFORM" >> $GITHUB_OUTPUT - name: Load and Start Appwrite run: | docker compose build docker compose up -d - docker compose exec appwrite sdks --platform=console --sdk=web --version=latest --git=no - sudo chown -R $USER:$USER ./app/sdks/console-web + docker compose exec appwrite sdks --platform=${{ steps.set-sdk.outputs.platform }} --sdk=${{ steps.set-sdk.outputs.sdk_type }} --version=latest --git=no + sudo chown -R $USER:$USER ./app/sdks/${{ steps.set-sdk.outputs.platform }}-${{ steps.set-sdk.outputs.sdk_type }} - uses: actions/setup-node@v4 with: diff --git a/README.md b/README.md index a1bf069c2c..435a2efd87 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ > [Get started with Appwrite](https://apwr.dev/appcloud) +> [Join the Init kick off event 19th of May: The future of Appwrite with Founder & CEO Eldad Fux](https://www.youtube.com/watch?v=1g8tuogsp7A)