Skip to content

GitHub Actions

GitHub Actions deployment is a shared-mode workflow. CI should use an API token and the same root CLI commands a local operator uses.

Create a deploy token:

Terminal window
devopsellence auth token create --name github-actions

Add the returned token as a repository secret (for example DEVOPSELLENCE_TOKEN), along with any app secrets the workflow needs.

Example workflow:

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install devopsellence
run: curl -fsSL https://www.devopsellence.com/lfg.sh | bash
- name: Deploy
env:
DEVOPSELLENCE_TOKEN: ${{ secrets.DEVOPSELLENCE_TOKEN }}
run: |
~/.local/bin/devopsellence deploy
~/.local/bin/devopsellence status

Prefer dry-run jobs for protected environments:

Terminal window
devopsellence deploy --dry-run