From 771f772d70cfb541f024af71fc231bca782ecb57 Mon Sep 17 00:00:00 2001 From: karurochari Date: Fri, 3 Jan 2025 09:11:32 +0000 Subject: [PATCH] Fix #78 --- .github/workflows/docs.yml | 9 +++++---- .github/workflows/push.yml | 12 ++++++++++++ .github/workflows/release.yml | 16 ++++++++++++++++ 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c9a6552c..428f68c7 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,10 +2,11 @@ name: Deploy Docs on: workflow_call: - push: - branches: - - master - + inputs: + subdir: + type: string + required: false + default: "next" jobs: build-deploy: permissions: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 00000000..bfc0669e --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,12 @@ +name: Docs `next` + +on: + push: + branches: + - master +jobs: + docs: + uses: ./.github/workflows/docs.yml + permissions: + contents: write + pages: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c536559..3a3f7f0d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,3 +59,19 @@ jobs: with: files: | ./build/meson-dist/**/* + docs: + uses: ./.github/workflows/docs.yml + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + with: + subdir: ${{github.ref_name}} + permissions: + contents: write + pages: write + docs-latest: + uses: ./.github/workflows/docs.yml + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + with: + subdir: latest + permissions: + contents: write + pages: write