Skip to content

Commit

Permalink
Release v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthri authored May 24, 2023
2 parents 7d1d325 + 742ee04 commit d8d3024
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
5 changes: 1 addition & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
* text=auto

*.yml text eol=lf
*.yaml text eol=lf
* text=auto eol=lf
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
type: string
environment_name:
default: "NuGet (Stable)"
description: The name of the environment containing the NuGet API key.
description: The name of the environment that represents the deployment.
required: false
type: string
project_path:
Expand All @@ -29,6 +29,10 @@ on:
description: The version of the package.
required: false
type: string
secrets:
NUGET_API_KEY:
description: The API key to use to publish the package to NuGet.
required: true

defaults:
run:
Expand Down
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@
A reusable workflow for deploying to NuGet.

## Installation
Add a new workflow under .github/workflows/ with the following contents.
```yml
name: Deploy
1. Add a new workflow under .github/workflows/ with the following contents.
```yml
name: Deploy

on:
push:
branches:
- release/nuget
on:
push:
branches:
- release/nuget

jobs:
deploy:
uses: Arthri/deploy_nuget/.github/workflows/deploy.yml@v1
```
jobs:
deploy:
uses: Arthri/deploy_nuget/.github/workflows/deploy.yml@v1
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
```
2. Create a new environment named `NuGet (Stable)` with a secret named `NUGET_API_KEY` containing the API key used to publish packages to NuGet.

## Usage
1. Create a pull request from `master` to `release/nuget`.
Expand Down

0 comments on commit d8d3024

Please sign in to comment.