Deploy your branch easily in your Based.io account using this GitHub Action.
Required The user ID created on the Based.io dashboard.
Required The secret token for authentication with the Based.io API.
Not Required The size of the environment, can be 'small' or 'large'. The default is 'small'.
Not Required In which region would you like to spawn the environment? You can choose between 'eu-central-1', 'sa-east-1', 'us-east-1', 'us-west-1', 'ap-southeast-2'. The default is 'eu-central-1'.
A Success/Error message containing the Based CLI output.
- Login into your account at Based.io dashboard. After to create your first organization (in this case 'github-actions'), click on 'New Project' and choose a name (in this case 'demo') and create your first environment.
- Go to 'Settings' and click on your organization's name and then click on 'Service accounts'. After click on 'Create new service account'.
- Give a name to your service account and select a role to your project. You can choose between 'admin' and 'viewer' (in this case, you need to set 'admin'), check the option 'Organization admin', and then click on 'Create service account'.
- You'll see your User ID and the API key. Pay attention you can only see this information once, so click on both to copy to your clipboard and store safely this information and then click on Exit.
- Your dashboard will update with your new service account created. Now you can use this action passing the information to the workflow.
- Note that you must use 'userID' and 'apiKey' as the env's variable's names.
uses: atelier-saulx/based-deploy@v1.3.11
with:
userID: ${{ secrets.BASED_USER_ID }}
apiKey: ${{ secrets.BASED_API_KEY }}
size: small
region: eu-central-1