Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.07 KB

README.md

File metadata and controls

29 lines (16 loc) · 1.07 KB

Build

dotnet new workflow

This is a simple global tool to give you a handy and quick method to create a GitHub Actions workflow file for continous integration (CI) builds.

For more information on why you can read this blog post: https://timheuer.com/blog/generate-github-actions-workflow-from-cli/.

Usage

To create a workflow for your project from the root of your source code (which would represent the root of your repo -- GitHub Actions workflows exist in the root of your repo). Some examples

Default

To use all the defaults:

dotnet new workflow

This generates the workflow with all the defaults:

  • latest SDK version using Major.Minor.x versioning (e.g., 8.0.x)
  • workflow file will use project name
  • default branch of main

Custom options

To specify the name of your YAML file and/or the SDK version you want to use specify more options:

dotnet new workflow --sdk-version 8.0.100 -n build -b your_branch_name