Skip to content

Commit

Permalink
add auto-release for docs merged to main
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Ulmasov <ulmasov@hotmail.com>
  • Loading branch information
r3stl355 authored and rtyler committed Dec 14, 2023
1 parent 2d65e72 commit 363b6ea
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docs_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: docs_release

on:
pull_request:
types:
- closed
branches: [main]
paths:
- docs/**
- mkdocs.yml

jobs:
release-docs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Trigger the docs release event
uses: peter-evans/repository-dispatch@v2
with:
event-type: release-docs
client-payload: >
{
"tag": "${{ github.ref_name }}"
}

0 comments on commit 363b6ea

Please sign in to comment.