Skip to content

Release to GitHub and push tag #82

Release to GitHub and push tag

Release to GitHub and push tag #82

Workflow file for this run

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.7.1"
changelog: true
changelog-config: "./.github/changelog-config.json"
changelog-file: "./docs/docs/user/changelog.md"
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@v4
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