-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (42 loc) · 1.33 KB
/
release.yaml
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
name: Release to GitHub and update docs
on:
workflow_dispatch:
inputs:
release-type:
description: "Scope of the release; see https://python-poetry.org/docs/cli/#version"
type: choice
required: true
default: patch
options:
- patch
- minor
- major
jobs:
create-github-release-push-tag:
uses: bakdata/ci-templates/.github/workflows/[email protected]
name: Release
with:
release-type: ${{ inputs.release-type }}
poetry-version: "1.5.1"
changelog: true
changelog-config: "./.github/changelog-config.json"
secrets:
github-username: "${{ secrets.GH_USERNAME }}"
github-email: "${{ secrets.GH_EMAIL }}"
github-token: "${{ secrets.GH_TOKEN }}"
update-docs:
runs-on: ubuntu-22.04
needs: create-github-release-push-tag
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all tags; Required for doc versioning
- name: Update gh-pages
uses: ./.github/actions/update-docs
with:
username: ${{ secrets.GH_USERNAME }}
email: ${{ secrets.GH_EMAIL }}
token: ${{ secrets.GH_TOKEN }}
version: ${{ needs.create-github-release-push-tag.outputs.release-version }}
release: true