You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
DDN Deployment
2.0.0
This repository contains the code to automate the deployment of a Hasura v3 project on Hasura DDN.
A Hasura account is required to use this tool. You can sign up for a free account at Hasura Cloud.
A Hasura Personal Access Token (PAT) is required to authenticate with Hasura Cloud. You can create a PAT from the Access Tokens
page of Hasura Cloud. You'll then need to add the following secret to your repository:
HASURA_PAT: <your-hasura-pat>
In any workflow, add the following steps to automate the deployment of your Hasura project to Hasura DDN:
name: Hasura DDN Build
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Hasura DDN Build
uses: hasura/[email protected]
with:
hasura-pat: ${{ secrets.HASURA_PAT }}
build_description: "This build was created using CI/CD"
Imagine you have a branch called main
that you use to create a DDN build. You can use the following workflow:
name: Automatic Builds from main branch
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy Hasura Project
uses: hasura/[email protected]
with:
hasura-pat: ${{ secrets.HASURA_PAT }}
build_description: "This build was created using CI/CD"
Check out the deployment guide in our docs 🚀