This action allows you to deploy your Appwrite functions using GitHub actions.
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
- 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')
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 ]'