Create release #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release | |
on: | |
workflow_dispatch: | |
jobs: | |
release_notes: | |
name: "Create release & release notes" | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Fetch unshallow | |
run: git fetch --prune --tags --unshallow | |
- name: Setup .NET 6 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Setup .NET 5 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '5.0.x' | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.x' | |
- name: Read version.json to env | |
uses: antifree/[email protected] | |
with: | |
filename: ./easydata.net/version.json | |
prefix: ed | |
- name: Install AistDoc | |
run: dotnet tool install Aistant.DocImport --tool-path ./tool | |
- name: Run AistDoc | |
run: ./tool/aistdoc changelog easydata --config:./configs/release-notes-config.json --pat:${{ secrets.GITHUB_TOKEN }} --output:./tool/releaseNotes.md --version:${{ env.ed_packageVersion }} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: "v${{ env.ed_packageVersion }}" | |
release_name: "EasyData ${{ env.ed_packageVersion }}" | |
body_path: ./tool/releaseNotes.md | |
draft: true | |
prerelease: false |