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
| input | required | default | description |
|---|---|---|---|
endpoint | yes | Base URL of the muelle receiver, e.g. https://muelle.example.com | |
site | yes | Site name as declared in services.muelle.sites | |
secret | yes | HMAC secret shared with the host for this site | |
action | deploy | deploy | teardown | announce | abort | |
environment | preview | prod | next | preview | |
artifact-id | artifact-id output of actions/upload-artifact (deploy) | ||
artifact-digest | artifact-digest output of actions/upload-artifact (deploy) | ||
branch | Branch name; defaults to the triggering branch (the deleted one for delete events) | ||
timeout-seconds | 600 | How long to wait for the host to finish | |
github-token | ${{ github.token }} | Token used to download the artifact and to report GitHub Deployments | |
deployments | true | Report GitHub Deployment state (true | false) |
Outputs
| output | description |
|---|---|
url | URL 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:
| variable | value |
|---|---|
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 }} |