===================================== 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! .. video:: _static/wf_publish/wf_publish.mp4 :autoplay: :muted: :loop: Follow the below steps to try it out: 1. In the :file:`configs` folder, go to your :file:`config.yaml` file, and make sure it matches your production instance details: host ``.artificial.com`` This is the URL for the instance you want to deploy the workflow to. labmanhost ``.artificial.com`` This is the URL for the instance you want to deploy the workflow to. labID ```` This is the lab that you will deploy the Workflow too. For details on obtaining the labID, visit here. orgID ```` This is your company name. prefix ```` This is the prefix to the URL. If you are deploying to ``company-dev.artificial.com``, this will be ``company-dev``. 2. In the same folder as the :file:`config.yaml` file, update your :file:`secrets.yaml` with a production token: a. Go to :guilabel:`Settings` and select :guilabel:`API Key` under your name. b. Select :guilabel:`Add new Token` and name this "Codespaces". c. Copy this token before you close out! d. Paste this token into the :file:`secrets.yaml` file 3. In the :file:`configs` folder, go to :file:`context.yaml`, and make sure the ``activeContext`` is set to the correct folder with the modified config and secrets files. 4. Click the Artificial extension to activate the extension. 5. 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. 6. Under :guilabel:`Workflow Publishing`, find your Workflow and publish it with 1 of the 2 options: a. Click the upload icon next to the name b. Click "Publish now" in the workflow .py file 7. Go to your production instance and go to :guilabel:`Workflows`, open your Workflow and adjust one of the configuration options, and hit :guilabel:`Save`. If your Workflow does not have configurations, no action is required.