Skip to content

Deploy Appwrite Function

Actions
A simple way to deploy your function to Appwrite
v1.4
Latest
Star (3)

Apppwrite-Deploy

This action allows you to deploy your Appwrite functions using GitHub actions.

Setup

To get started simply create a .appwrite file in each of your function folders or at the root if you only intend to deploy one function. The .appwrite file should look like this:

COMMAND="node ." # The command that starts your function
FUNCID="612934711598e" # The id of your function
CODE="./" # The directory that contains your code

Inputs

  • endpoint Your Appwrite endpoint
  • project The Appwrite project id
  • key The Appwrite API token
  • single true if you are deploying one function from your root directory; false if you are deploying multiple functions from multiple subdirectories (default: 'true')
  • code The directory containing your function (default: './')
  • locale The locale of the cli (default: 'en-US')

Example

name: Deploy to Appwrite
on:
  push:
    branches:
     - master

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout the code
        uses: actions/checkout@v2
      - name: Deploy my function to Appwrite
        uses: rdmchr/[email protected]
        with:
          endpoint: '[ Your Appwrite endpoint ]'
          project: '[ The id of your Appwrite project ]'
          key: '[ Your Appwrite API Token ]'

Deploy Appwrite Function is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A simple way to deploy your function to Appwrite
v1.4
Latest

Deploy Appwrite Function is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.