-
Notifications
You must be signed in to change notification settings - Fork 0
/
github-release.yml
28 lines (25 loc) · 1.09 KB
/
github-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This example should be copied into your main .yml workflow and not imported.
# It lacks the relevant input/output features to work effectively with all applications and is currently only set up to work with .NET.
# Contributions to make this an importable workflow is welcome.
# This workflow will generate a GitHub Release when a GitHub release is created and tagged.
# E.g. If you create a release from the main page of your GitHub repo, and add a tag, this workflow will be run.
# Example of usage:
# See full example
release:
name: Release .NET ${{ needs.version.outputs.git-version }}
runs-on: windows-latest
needs: [unit-tests, integration-tests, version, build]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Retrieve Release Artifact
uses: actions/download-artifact@v3
with:
name: replace-this-${{ needs.version.outputs.git-version }}
path: _nupkg
- name: Generate Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: _nupkg/*
body_path: ReleaseNotes.md