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