Automatically deploy dotnet projects using msbuild as part of your Github Actions workflow.
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
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 |
Currently there is no outputs
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
The scripts and documentation in this project are released under the MIT License