Skip to content

Commit

Permalink
Remove workflows folder
Browse files Browse the repository at this point in the history
  • Loading branch information
murunu committed Sep 9, 2022
1 parent 63f03f1 commit acf412e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 137 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/dotnet-format.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/dotnet-publish.yml

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Tegra Systems

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
84 changes: 13 additions & 71 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,33 @@
# Github Actions for dotnet projects

## Table of contents
- [Github Actions for dotnet projects](#github-actions-for-dotnet-projects)
- [Table of contents](#table-of-contents)
- [Github Action for publishing dotnet projects](#github-action-for-publishing-dotnet-projects)
- [Usage](#usage)
- [Parameters](#parameters)
- [Inputs](#inputs)
- [Outputs](#outputs)
- [Limitations](#limitations)
- [Github Action for dotnet-format](#github-action-for-dotnet-format)
- [Usage](#usage-1)
- [Parameters](#parameters-1)
- [Inputs](#inputs-1)
- [Outputs](#outputs-1)
- [License](#license)

## Github Action for publishing dotnet projects
Automatically deploy dotnet projects using [msbuild](https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild?view=vs-2022) as part of your Github Actions workflow.

### Usage
Running on `pull_request` type `closed`
```yaml
name: "[CD]Deploy"

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

jobs:
Release:
uses: tegrasystems/actions/.github/workflows/dotnet-publish.yml@master
with:
project-path: PATH_TO_PROJECT
publishprofile: PATH_TO_PUBLISHPROFILE
password: PASSWORD
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 |
| configuration | (optional) Name of configuration | string |
| additional-arguments | (optional) Additional switches to use in msbuild command, see [msbuild documentation](https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2022#switches) 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](https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/visual-studio-publish-profiles?view=aspnetcore-6.0)





## Github Action for dotnet-format
# Github Action for dotnet-format
Run [dotnet-format](https://github.com/dotnet/format) as part of your workflow to auto fix violations as part of your pull request workflow.

### Usage
## Usage
Running on `pull_request`
```yaml
name: "[CI]Build, Test and Lint"

on: pull_request
jobs:
dotnet-format:
uses: tegrasystems/actions/.github/workflows/dotnet-format.yml@master
with:
project: PROJECT_PATH
project-name: PROJECT_NAME
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: dotnet-format
uses: tegrasystems/dotnet-format@v1
with:
project: PROJECT_PATH
project-name: PROJECT_NAME
```
### Parameters
#### Inputs
## Parameters
### Inputs
| Name | Description | Type |
| --- | ----------- | ----- |
| project | Path to `.csproj` or `.sln` file | string |
| project-name | Name of the project, will be displayed as name of job | string |

#### Outputs
### Outputs
| Name | Description | Type |
| --- | ----------- | ----- |
| has-changes | `true` if any files were found to have fixes applied. Will be a string of `true` or `false` | string |
Expand Down

0 comments on commit acf412e

Please sign in to comment.