Skip to content

Publish your dotnet projects or solutions as part of your Github Actions workflow

License

Notifications You must be signed in to change notification settings

tegrasystems/dotnet-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Github Action for publishing dotnet projects

Automatically deploy dotnet projects using msbuild as part of your Github Actions workflow.

Usage

Running on pull_request type closed

name: "[CD]Deploy"

on:
  pull_request:
    branches: [ "Release" ]
    types: [ "closed" ]

jobs:
    Release:
        runs-on: windows-latest
        steps:
            -   uses: actions/checkout@v2
            -   name: Release
                uses: tegrasystems/dotnet-publish@v1
                with:
                    project-path: PATH_TO_PROJECT
                    publishprofile: PATH_TO_PUBLISHPROFILE
                    password: PASSWORD
                    version: VERSION
                    configuration: CONFIGURATION

Parameters

Inputs

Name Description Type
project-path Path to .csproj to deploy string
publishprofile Path to .pubxml of the project to deploy string
password Password needed for publishprofile string
version The Version that sets AssemblyVersion and FileVersion string
configuration (optional) Name of configuration string
additional-arguments (optional) Additional switches to use in msbuild command, see msbuild documentation for more information string

Outputs

Currently there is no outputs

Limitations

At this moment it is not possible to run this Github Action without using a publishprofile, for more information about making publishprofile see Microsoft documentation

License

The scripts and documentation in this project are released under the MIT License

About

Publish your dotnet projects or solutions as part of your Github Actions workflow

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published