From bbac80d2e633569090681e0e5803732210d22b26 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 13 Sep 2025 12:00:46 +0000 Subject: [PATCH] ci: Fix pages deployment. (#165) Signed-off-by: Jason Volk --- .github/workflows/main.yml | 2 ++ .github/workflows/publish.yml | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 39fe2c80..6eee687d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,6 +46,7 @@ jobs: complement_runner: 'het' docker_repo: ${{vars.DOCKER_REPO}} release_url: ${{steps.release.outputs.upload_url}} + pages_url: 'https://matrix-construct.github.io/tuwunel/' strategy: fail-fast: true @@ -273,6 +274,7 @@ jobs: with: docker_repo: ${{needs.init.outputs.docker_repo}} release_url: ${{needs.init.outputs.release_url}} + pages_url: ${{needs.init.outputs.pages_url}} cargo_profiles: ${{needs.init.outputs.cargo_profiles}} feat_sets: ${{needs.init.outputs.feat_sets}} rust_toolchains: ${{needs.init.outputs.rust_toolchains}} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index af739b94..3a172e1f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,20 +44,27 @@ on: release_url: type: string description: For release assets + pages_url: + type: string + description: For pages deployment jobs: documents: if: > !failure() && !cancelled() - && contains(fromJSON(inputs.sys_targets), fromJSON('["X64"]')[0]) && (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v')) && !contains(github.ref, '-draft') name: Documents runs-on: ['X64', 'het'] permissions: - pages: write + contents: read id-token: write + pages: write + + environment: + name: github-pages + url: ${{inputs.pages_url}} steps: - id: book