mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Adding an automatic releaser
This commit is contained in:
parent
721a38c9a2
commit
5f1b45b207
22
.github/workflows/common.yml
vendored
22
.github/workflows/common.yml
vendored
@ -1,22 +0,0 @@
|
||||
name: Publish to nuget
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: build, pack & publish
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
# Publish
|
||||
- name: publish on version change
|
||||
id: publish_nuget
|
||||
uses: rohith/publish-nuget@v2
|
||||
with:
|
||||
PROJECT_FILE_PATH: Kyoo.Common/Kyoo.Common.csproj
|
||||
PACKAGE_NAME: Kyoo.Common
|
||||
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
|
||||
INCLUDE_SYMBOLS: true
|
46
.github/workflows/release.yml
vendored
Normal file
46
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
create:
|
||||
tags:
|
||||
- v*
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Wait for builds & tests to finish
|
||||
uses: lewagon/wait-on-check-action@v0.2
|
||||
with:
|
||||
ref: ${{github.ref}}
|
||||
repo-token: ${{secrets.GITHUB_TOKEN}}
|
||||
running-workflow-name: release
|
||||
- name: Generate changelog
|
||||
uses: mikepenz/release-changelog-builder-action@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
- name: Download artifacts
|
||||
uses: dawidd6/action-download-artifact@v2
|
||||
with:
|
||||
commit: ${{github.ref}}
|
||||
workflow: build.yml
|
||||
path: ./artifacts
|
||||
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||
- name: Public the common to nuget
|
||||
id: publish_nuget
|
||||
uses: rohith/publish-nuget@v2
|
||||
with:
|
||||
PROJECT_FILE_PATH: Kyoo.Common/Kyoo.Common.csproj
|
||||
PACKAGE_NAME: Kyoo.Common
|
||||
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
|
||||
INCLUDE_SYMBOLS: true
|
||||
- name: Create Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
draft: true
|
||||
release_name: ${{github.ref}}
|
||||
body: ${{steps.github_release.outputs.changelog}}
|
||||
arficats: ./artifacts/**/*
|
||||
token: ${{secrets.GITHUB_TOKEN}}
|
18
deployment/changelog.json
Normal file
18
deployment/changelog.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"categories": [
|
||||
{
|
||||
"title": "## Features",
|
||||
"labels": ["feature"]
|
||||
},
|
||||
{
|
||||
"title": "## Fixes",
|
||||
"labels": ["fix"]
|
||||
},
|
||||
{
|
||||
"title": "## Web App",
|
||||
"labels": ["webapp"]
|
||||
}
|
||||
],
|
||||
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Others</summary>\n\n${{UNCATEGORIZED}}\n</details>",
|
||||
"pr_template": "- ${{TITLE}} (PR: #${{NUMBER}})"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user