Publish your Workflow from Codespaces#
This article describes how you can deploy your Workflow to your production instance. You can now deploy Workflows to your production instance via Codespaces!
Follow the below steps to try it out:
In the
configs
folder, go to yourconfig.yaml
file, and make sure it matches your production instance details:- host
<company>.artificial.com
This is the URL for the instance you want to deploy the workflow to.- labmanhost
<company>.artificial.com
This is the URL for the instance you want to deploy the workflow to.- labID
<lab ID>
This is the lab that you will deploy the Workflow too. For details on obtaining the labID, visit here.- orgID
<company>
This is your company name.- prefix
<company>
This is the prefix to the URL. If you are deploying tocompany-dev.artificial.com
, this will becompany-dev
.
In the same folder as the
config.yaml
file, update yoursecrets.yaml
with a production token:Go to Settings and select API Key under your name.
Select Add new Token and name this “Codespaces”.
Copy this token before you close out!
Paste this token into the
secrets.yaml
file
In the
configs
folder, go tocontext.yaml
, and make sure theactiveContext
is set to the correct folder with the modified config and secrets files.Click the Artificial extension to activate the extension.
You can check if you have the latest commits in a terminal window with the
git log
command. If you don’t have the latest commits, then you can fetch and pull.Under Workflow Publishing, find your Workflow and publish it with 1 of the 2 options:
Click the upload icon next to the name
Click “Publish now” in the workflow .py file
Go to your production instance and go to Workflows, open your Workflow and adjust one of the configuration options, and hit Save. If your Workflow does not have configurations, no action is required.