Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Action inputs and outputs

Generated from action.yml. See Your first workflow for a complete workflow and Payload and status API for what the action sends.

Ask a muelle host to deploy (or tear down) a static site built in this workflow.

Inputs

inputrequireddefaultdescription
endpointyesBase URL of the muelle receiver, e.g. https://muelle.example.com
siteyesSite name as declared in services.muelle.sites
secretyesHMAC secret shared with the host for this site
actiondeploydeploy | teardown | announce | abort
environmentpreviewprod | next | preview
artifact-idartifact-id output of actions/upload-artifact (deploy)
artifact-digestartifact-digest output of actions/upload-artifact (deploy)
branchBranch name; defaults to the triggering branch (the deleted one for delete events)
timeout-seconds600How long to wait for the host to finish
github-token${{ github.token }}Token used to download the artifact and to report GitHub Deployments
deploymentstrueReport GitHub Deployment state (true | false)

Outputs

outputdescription
urlURL of the deployed environment

Environment of the client

The action runs muelle.client, mapping each input to a MUELLE_* variable. The same client runs outside GitHub Actions as muelle-client:

variablevalue
MUELLE_ENDPOINT${{ inputs.endpoint }}
MUELLE_SITE${{ inputs.site }}
MUELLE_SECRET${{ inputs.secret }}
MUELLE_ACTION${{ inputs.action }}
MUELLE_ENV${{ inputs.environment }}
MUELLE_ARTIFACT_ID${{ inputs.artifact-id }}
MUELLE_SHA256${{ inputs.artifact-digest }}
MUELLE_BRANCH${{ inputs.branch || (github.event_name == 'delete' && github.event.ref) || '' }}
MUELLE_SHA${{ github.event.pull_request.head.sha || github.sha }}
MUELLE_TIMEOUT${{ inputs.timeout-seconds }}
MUELLE_TOKEN${{ inputs.github-token }}
MUELLE_DEPLOYMENTS${{ inputs.deployments }}
GH_TOKEN${{ inputs.github-token }}
PYTHON${{ steps.python.outputs.python-path }}