This vignette covers advanced workflows with {circle} and how to integrate them with {tic}. It assumes you have completed the basics in the “Getting Started” vignette.
Use the high-level helpers to browse recent activity and drill down into details.
# list recent pipelines for a repo
circle::get_pipelines(owner = "ropensci", repo = "circle")
# list workflows of a given pipeline id
# (replace with a pipeline id from the previous result)
circle::get_workflows(pipeline_id = "<pipeline-id>")
# list jobs of a workflow
circle::get_jobs(workflow_id = "<workflow-id>")The {tic} package provides a CI-agnostic DSL and ready-made templates for CircleCI. Combine {circle} (API client) with {tic} (workflow setup) to automate checks and deployments.
Edit tic.R to add or modify stages. For example, enable
pkgdown deployment only on tags:
For deployments, set up a user key once using {circle}:
This adds a user key on CircleCI and registers the corresponding key
in your GitHub account, so that tic::deploy() can push the
pkgdown site to gh-pages.