ci: Fix pages deployment. (#165)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
a31c9b0c62
commit
bbac80d2e6
2 changed files with 11 additions and 2 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
|
@ -46,6 +46,7 @@ jobs:
|
||||||
complement_runner: 'het'
|
complement_runner: 'het'
|
||||||
docker_repo: ${{vars.DOCKER_REPO}}
|
docker_repo: ${{vars.DOCKER_REPO}}
|
||||||
release_url: ${{steps.release.outputs.upload_url}}
|
release_url: ${{steps.release.outputs.upload_url}}
|
||||||
|
pages_url: 'https://matrix-construct.github.io/tuwunel/'
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
|
@ -273,6 +274,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
docker_repo: ${{needs.init.outputs.docker_repo}}
|
docker_repo: ${{needs.init.outputs.docker_repo}}
|
||||||
release_url: ${{needs.init.outputs.release_url}}
|
release_url: ${{needs.init.outputs.release_url}}
|
||||||
|
pages_url: ${{needs.init.outputs.pages_url}}
|
||||||
cargo_profiles: ${{needs.init.outputs.cargo_profiles}}
|
cargo_profiles: ${{needs.init.outputs.cargo_profiles}}
|
||||||
feat_sets: ${{needs.init.outputs.feat_sets}}
|
feat_sets: ${{needs.init.outputs.feat_sets}}
|
||||||
rust_toolchains: ${{needs.init.outputs.rust_toolchains}}
|
rust_toolchains: ${{needs.init.outputs.rust_toolchains}}
|
||||||
|
|
|
||||||
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
|
|
@ -44,20 +44,27 @@ on:
|
||||||
release_url:
|
release_url:
|
||||||
type: string
|
type: string
|
||||||
description: For release assets
|
description: For release assets
|
||||||
|
pages_url:
|
||||||
|
type: string
|
||||||
|
description: For pages deployment
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
documents:
|
documents:
|
||||||
if: >
|
if: >
|
||||||
!failure() && !cancelled()
|
!failure() && !cancelled()
|
||||||
&& contains(fromJSON(inputs.sys_targets), fromJSON('["X64"]')[0])
|
|
||||||
&& (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v'))
|
&& (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/v'))
|
||||||
&& !contains(github.ref, '-draft')
|
&& !contains(github.ref, '-draft')
|
||||||
|
|
||||||
name: Documents
|
name: Documents
|
||||||
runs-on: ['X64', 'het']
|
runs-on: ['X64', 'het']
|
||||||
permissions:
|
permissions:
|
||||||
pages: write
|
contents: read
|
||||||
id-token: write
|
id-token: write
|
||||||
|
pages: write
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{inputs.pages_url}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- id: book
|
- id: book
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue