Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthri authored May 8, 2023
2 parents 88db86c + b93c817 commit df7a377
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Click on the `Preview` tab and select a template:

- [Merge Request](?expand=1&labels=triage&quick_pull=1&template=merge_request.md)
- [Patch Release Request](?expand=1&labels=release,release%3Apatch&quick_pull=1&template=patch_release_request.md&title=Release%20vMajor.Minor.Patch%5B%20%7C%20Release%20Name%5D)
- [Minor Release Request](?expand=1&labels=release,release%3Aminor&quick_pull=1&template=minor_release_request.md&title=Release%20vMajor.Minor.0%5B%20%7C%20Release%20Name%5D)
- [Major Release Request](?expand=1&labels=release,release%3Amajor&quick_pull=1&template=major_release_request.md&title=Release%20vMajor.0.0%5B%20%7C%20Release%20Name%5D)
- [Prerelease Request](?expand=1&labels=release,release%3Aprerelease&quick_pull=1&template=prerelease_request.md&title=Prerelease%20vMajor.Minor.Patch%5B-suffix%5D%5B%20%7C%20Release%20Name%5D)
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/major_release_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
Release Description
-->

## 🆕 Features
<!--
- Added this
- Added that
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->

## ❗ Breaking Changes
<!--
- `API.SendRequest` has been rewritten and its parameters have changed
-->
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/merge_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Description
<!-- A list of what the merge request changes. -->

## Intent
<!-- A summary of why the merge request should be merged. -->

## Additional Context
<!-- Additional information such as motivation or inspiration. -->
None.
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/minor_release_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!--
Release Description
-->

## 🆕 Features
<!--
- Added this
- Added that
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/patch_release_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Release Description
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/prerelease_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--
Prerelease Description
-->

## 🆕 Features
<!--
- Added this
- Added that
-->

## 🐞 Fixes
<!--
- Fixed this
- Fixed that
- Fixed all of them
-->

## ❗ Breaking Changes
<!--
- `API.SendRequest` has been rewritten and its parameters have changed
-->
18 changes: 18 additions & 0 deletions .github/workflows/release_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release Request
run-name: Release Request

on:
pull_request:
types:
- closed
- edited
- opened
branches:
- master

jobs:
handle_release_request:
name: ${{ github.event.action == 'closed' && 'Resolve ' || 'Verify ' }}Release Request
permissions:
contents: write
uses: Arthri/release_request/.github/workflows/release_request.yml@v1
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ jobs:
1. Configure environment.
1. Add a secret named `NUGET_API_KEY`

### Set Release Notes or Changelog
```yml
jobs:
deploy:
uses: Arthri/deploy_nuget/.github/workflows/deploy.yml@v1
with:
changelog: |
- Added this
- Removed that
```

### Specify Environment Name
By default, the workflow acquires `NUGET_API_KEY` from an environment named `NuGet (Stable)`. The environment name can be changed using the `environment_name` parameter.
```yml
Expand All @@ -47,3 +58,13 @@ jobs:
with:
project_path: ./src/Test.App/Test.App.csproj
```

### Set Version
By default, the package's version will be set to the `$(Version)` property of a project. It can be overriden using configuration options.
```yml
jobs:
deploy:
uses: Arthri/deploy_nuget/.github/workflows/deploy.yml@v1
with:
version: v1.0.0
```

0 comments on commit df7a377

Please sign in to comment.