DevOps Your Skill: Submit
DevOps Your Skill: Submit
In this article, we discuss how to send to certification your Alexa Skill in your pipeline and its importance in the day-to-day Alexa Skills development.
Join the DZone community and get the full member experience.Join For Free
This is the last step of our pipeline. Previously we have run a lot of different tests and if everything is ok, it is time to submit our Alexa Skill to certification. It means, we have concluded the Continuous integration part, it is time to Continuous Deployment.
These step are automated in the continuous integration system (CircleCI) and are executed in each new version of the software.
Here you have the technologies used in this project
- ASK CLI - Install and configure ASK CLI
- CircleCI Account - Sign up here
- Node.js v10.x
- Visual Studio Code
The Alexa Skills Kit Command Line Interface (ASK CLI) is a tool for you to manage your Alexa skills and related resources, such as AWS Lambda functions. With ASK CLI, you have access to the Skill Management API, which allows you to manage Alexa skills programmatically from the command line. We will use this powerful tool to validate our Alexa Skill. Let's start!
The ASK CLI is included in the Docker image we are using so it is not necessary to install anything else.
In this step of the pipeline we are going to submit our Alexa Skill using the ASK CLI. When you submit your skill to the Alexa Store, it must pass a certification process from Amazon staff before it can be published live to Amazon customers. We can use the following commands in the Skill Management API (SMAPI) to manage the certification and publication of an Alexa skill. In our case, we will only submit to certificate and not publishing it automatically, just certify.
- For ask cli v1:
- For ask cli v2:
Those commands are integrated in the bash script file
Here you can find the full bash script:
This script has two parameters:
- The id of the skill
- The version of the ASK CLI you are running (v1 or v2).
There are not reports defined in this job.
But we can see in the Alexa Developer Console the new status of our Alexa Skill in the Certification tab:
It is not necessary to integrate it in
Everything is ready to submit our Alexa Skill, let's add it to our pipeline!
This job will execute the following tasks:
- Restore the code that we have downloaded in the previous step in
- Run the
NOTE: To perform these tests in CircleCI you have to set the environment variable
SKILL_ID with the id of your Alexa Skill.
- DevOps Wikipedia - Wikipedia reference
- Official Alexa Skill Management API Documentation - Alexa Skill Management API Documentation
- Official CircleCI Documentation - Official CircleCI Documentation
Thanks to the ASK CLI we can perform this complex task. This is the end, thank you for reading it until here!
That’s all, folks!
You can find the code in my GitHub.
I hope it will be useful! If you have any doubts or questions, do not hesitate to contact me or put a comment below.
Opinions expressed by DZone contributors are their own.