Skip to content

Commit d781d41

Browse files
authored
Create GitHub release notes on release (#29)
* Create release note * Rename workflow * Display documentation repo instead data manager
1 parent 29a0199 commit d781d41

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

.github/workflows/docs-build.yml renamed to .github/workflows/create-release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: Release new documentation version
22
on:
33
workflow_dispatch:
44
inputs:
@@ -30,3 +30,17 @@ jobs:
3030
- run: git fetch
3131
- run: mike set-default --allow-undefined ${{ github.event.inputs.versionTag }}
3232
- run: mike deploy --push --update-aliases ${{ github.event.inputs.versionTag }} latest
33+
34+
- name: Create Release Notes
35+
if: ${{ !startsWith(github.ref, 'refs/tags/')
36+
&& !( contains(github.event.inputs.versionTag, 'alpha')
37+
|| contains(github.event.inputs.versionTag, 'beta')
38+
|| contains(github.event.inputs.versionTag, 'rc')) }}
39+
uses: actions/github-script@v7
40+
with:
41+
github-token: ${{secrets.JOHNNY_Q5_REPORTS_TOKEN}}
42+
script: |
43+
await github.request(`POST /repos/${{ github.repository }}/releases`, {
44+
tag_name: "${{ github.event.inputs.versionTag }}",
45+
generate_release_notes: true
46+
});

mkdocs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ theme:
88
- header.autohide
99
site_url: 'https://qbicsoftware.github.io/research-data-management/'
1010
site_name: Life Science Data Management
11-
repo_url: https://github.com/qbicsoftware/data-manager-app
12-
repo_name: qbicsoftware/data-manager-app
11+
repo_url: https://github.com/qbicsoftware/research-data-management
12+
repo_name: qbicsoftware/research-data-management
1313
nav:
1414
- What's new: index.md
1515
- Get started:
@@ -47,8 +47,8 @@ extra:
4747
alias: true
4848
social:
4949
- icon: fontawesome/brands/github
50-
link: https://github.com/qbicsoftware/data-manager-app
51-
name: data manager app on Github
50+
link: https://github.com/qbicsoftware/research-data-management
51+
name: research-data-management on Github
5252
markdown_extensions:
5353
- admonition
5454
- pymdownx.details

0 commit comments

Comments
 (0)