- Home
- Score
- Working with
- GitHub Actions
-
- Overview
-
- Overview
- Deploy your Application
- Manage your Java application
- Migrate an Application
- Provision Amazon S3 Buckets
- Deploy an Amazon S3 Resource to production
- Set up the reference architecture in your cloud
- Scaffold a new Workload and create staging and prod Environments
- Update Resource Definitions for related Applications
- Provision a Redis cluster on AWS using Terraform
- Perform daily developer activities (debug, rollback, diffs, logs)
- Deploy ephemeral Environments
-
-
GitHub Actions
On this page
See the GitHub action here.
Set up Score with GitHub Actions #
humctl is a CLI tool that helps manage developer workloads. Here is how to set up humctl in your GitHub actions workflow.
Usage #
To use the humctl GitHub action, add the following step to your workflow:
steps:
- uses: humanitec/setup-cli-action@v1
with:
version: '0.23.0'
This will download and cache the specified version of the humctl
CLI and add it to $PATH
.
The action accepts the following inputs:
version
- The version of the CLI to install. Required.
Examples #
Using a pinned version #
Here is a complete example workflow:
name: Score Example
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up humctl
uses: humanitec/setup-cli-action@v1
with:
version: '0.23.0'
- name: Check version
run: humctl version
This installs version 0.23.0
of humctl
, adds it to $PATH
, and runs humctl version
to verify it is set up correctly.
The action caches the Score binary so it won’t need to download it each run.
Now Score is installed and ready for use in any downstream steps.
Using the latest version #
Using latest
is not yet supported, however as Score handling is implemented on the Platform Orchestrator side, new functionality will be available to existing versions as well."