Skip to content

Speedup triangulation of edges (#7268) #54

Speedup triangulation of edges (#7268)

Speedup triangulation of edges (#7268) #54

Workflow file for this run

name: Build Docs
on:
push:
branches:
- main
tags:
- "v*"
workflow_dispatch:
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
build-napari-docs:
name: Build docs on napari/docs
runs-on: ubuntu-latest
steps:
- name: get directory name
# if this is a tag, use the tag name as the directory name else dev
env:
REF: ${{ github.ref }}
run: |
TAG="${GITHUB_REF/refs\/tags\/v/}"
VER="${TAG/a*/}" # remove alpha identifier
VER="${VER/b*/}" # remove beta identifier
VER="${VER/rc*/}" # remove rc identifier
VER="${VER/post*/}" # remove post identifier
if [[ "$REF" == "refs/tags/v"* ]]; then
echo "branch_name=$VER" >> "$GITHUB_ENV"
else
echo "branch_name=dev" >> "$GITHUB_ENV"
fi
- name: Trigger workflow and wait
uses: convictional/[email protected]
with:
owner: napari
repo: docs
github_token: ${{ secrets.ACTIONS_DEPLOY_DOCS }}
workflow_file_name: build_and_deploy.yml
trigger_workflow: true
wait_workflow: true
client_payload: '{"target_directory": "${{ env.branch_name }}"}'