-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.46 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This workflow should be triggered when a release of the main is needed.
# It creates a tag and regenerates the documentation to generate a release.
name: Release major or minor version (create tag and documentation)
on:
workflow_dispatch:
inputs:
release_type:
type: choice
description: Choose type of release
default: major
options:
- minor
- major
jobs:
bump-up-version:
secrets: inherit
uses: ./.github/workflows/version_upgrade.yml
with:
release_type: ${{ github.event.inputs.release_type }}
create-release:
runs-on: ubuntu-latest
needs: bump-up-version
steps:
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ needs.bump-up-version.outputs.project_version }}
release_name: Release ${{ needs.bump-up-version.outputs.project_version }}
draft: false
prerelease: false
create-documentation:
needs: bump-up-version
secrets: inherit
uses: ./.github/workflows/mkdocs_documentation.yml
with:
project_version: ${{ needs.bump-up-version.outputs.project_version }}
docker-build:
needs: bump-up-version
uses: ./.github/workflows/docker_image.yml
with:
project_version: ${{ needs.bump-up-version.outputs.project_version }}