All Projects → timheuer → dotnet-workflow

timheuer / dotnet-workflow

Licence: MIT License
Template for quickly creating a starting GitHub Actions workflow for a .NET Core app

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., 3.1.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 3.1.403 -n build -b your_branch_name

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].