Skip to content

Commit

Permalink
message
Browse files Browse the repository at this point in the history
  • Loading branch information
andromaqui committed Jun 11, 2024
1 parent 8aa889d commit 353ae10
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/preview-env-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,29 @@ jobs:
with:
version: ">= 363.0.0"

- uses: bobheadxi/deployments@v1
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: ${{ github.event.number }}

- name: Upload files to google bucket
env:
BUCKET_NAME: ${{ steps.secrets.outputs.TEMP_BUCKET }}
run: |
gcloud config set pass_credentials_to_gsutil true
gsutil -m cp -R build/* gs://$BUCKET_NAME/pr-${{ github.event.number }}/index.html
- uses: bobheadxi/deployments@v1
id: deployment
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
env: ${{ steps.deployment.outputs.env }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}

- name: Create comment
uses: peter-evans/create-or-update-comment@v4
env:
Expand Down
8 changes: 6 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ const { unsupportedVersions } = require("./src/versions");

const latestVersion = require("./src/versions").versionMappings[0].docsVersion;

// Read url and baseUrl from environment variables
const siteUrl = process.env.DOCS_SITE_URL || "https://docs.camunda.io";
const siteBaseUrl = process.env.DOCS_SITE_BASE_URL || "/";

module.exports = {
title: "Camunda 8 Docs",
tagline: "Documentation for all components of Camunda 8",
// url: "https://camunda-cloud.github.io",
url: "https://docs.camunda.io",
url: siteUrl,
// baseUrl: "/camunda-cloud-documentation/",
baseUrl: "/",
baseUrl: siteBaseUrl,
customFields: {
canonicalUrlRoot: "https://docs.camunda.io",
},
Expand Down

0 comments on commit 353ae10

Please sign in to comment.