A github Action to create releases for a Replicated KOTS application.
An example workflow is included at ./.github/workflows/main.yml
name: Create a Replicated KOTS release
on: [push]
jobs:
create_release:
runs-on: ubuntu-latest
name: Create a Replicated KOTS release for this commit
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Create the release
id: test-action
uses: replicatedhq/[email protected]
with:
replicated-app: 'my-great-app'
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}
yaml-dir: manfests
The application slug or ID for this application. This can be found at vendor.replicated.com/settings.
A Replicated API token (create one at vendor.replicated.com).
A directory containing KOTS manifests, defaults to ./manifests
.
The release notes for the promoted release, defaults to GitHub Action release of ${GITHUB_REF} triggered by ${GITHUB_ACTOR}: [${GITHUB_SHA::7}](https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA})
.
The channel to promote the release into, defaults to ${GITHUB_REF}
.
The version number to set, defaults to first 7 characters of the commit SHA.
To limit which branches create releases or more advanced branch filtering, check out the GitHub Actions docs on workflow triggers.