Skip to content
box

GitHub Action

Deploy Appwrite Function

v1.4 Latest version

Deploy Appwrite Function

box

Deploy Appwrite Function

A simple way to deploy your function to Appwrite

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Deploy Appwrite Function

uses: rdmchr/Appwrite-Deploy@v1.4

Learn more about this action in rdmchr/Appwrite-Deploy

Choose a version

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/Appwrite-Deploy@v0.1
        with:
          endpoint: '[ Your Appwrite endpoint ]'
          project: '[ The id of your Appwrite project ]'
          key: '[ Your Appwrite API Token ]'