Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

rdmchr/Appwrite-Deploy

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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 ]'