Skip to content

Commit 6b19b04

Browse files
committed
update build and deploy gh-pages configuration
1 parent 4b9b4aa commit 6b19b04

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/publish-to-gh-pages.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Build and Deploy
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- master
@@ -8,6 +9,15 @@ jobs:
89
build-and-deploy:
910
runs-on: ubuntu-latest
1011

12+
# Load environment variables from repository settings,
13+
# environment should be named "production"
14+
# https://github.com/cadence-workflow/Cadence-Docs/settings/environments
15+
environment: production
16+
env:
17+
CADENCE_DOCS_URL: ${{ vars.CADENCE_DOCS_URL || 'https://cadenceworkflow.io' }}
18+
CADENCE_DOCS_BASE_URL: ${{ vars.CADENCE_DOCS_BASE_URL || '/Cadence-Docs/' }}
19+
CADENCE_DOCS_ORGANIZATION: ${{ vars.CADENCE_DOCS_ORGANIZATION || 'cadence-workflow' }}
20+
1121
steps:
1222
# same as build.yml
1323
- name: Checkout 🛎️

docs/09-about/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ If you have a feature request or a bug to report file an issue against one of th
1515
* [Cadence Service and CLI](https://github.com/cadence-workflow/cadence)
1616
* [Cadence Go Client](https://github.com/cadence-workflow/cadence-go-client)
1717
* [Cadence Go Client Samples](https://github.com/cadence-workflow/cadence-samples)
18-
* [Cadence Java Client](https://github.com/uber-java/cadence-client)
18+
* [Cadence Java Client](https://github.com/cadence-workflow/cadence-java-client)
1919
* [Cadence Java Client Samples](https://github.com/cadence-workflow/cadence-java-samples)
2020
* [Cadence Web UI](https://github.com/cadence-workflow/cadence-web)

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const config: Config = {
2525

2626
// Set the /<baseUrl>/ pathname under which your site is served
2727
// For GitHub pages deployment, it is often '/<projectName>/'
28-
baseUrl: envReplace('${CADENCE_DOCS_BASE_URL:-/}', process.env),
28+
baseUrl: envReplace('${CADENCE_DOCS_BASE_URL:-/Cadence-Docs/}', process.env),
2929

3030
// GitHub pages deployment config.
3131
// If you aren't using GitHub pages, you don't need these.

0 commit comments

Comments
 (0)