Skip to content

timheuer/dotnet-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Template for quickly creating a starting GitHub Actions workflow for a .NET Core app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published