From cab3d3800d76be77fa9f8db56f3413fc0780e23e Mon Sep 17 00:00:00 2001 From: Yvette Nartey Date: Tue, 4 Feb 2025 15:33:01 +0100 Subject: [PATCH] UPD:Update techdocs-gcs.yml --- .github/workflows/techdocs-gcs.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/techdocs-gcs.yml b/.github/workflows/techdocs-gcs.yml index fd53e0e..65ca798 100644 --- a/.github/workflows/techdocs-gcs.yml +++ b/.github/workflows/techdocs-gcs.yml @@ -16,8 +16,9 @@ jobs: node-version: ['20.x'] env: - TECHDOCS_BUCKET_NAME: ${{ secrets.TECHDOCS_BUCKET_NAME }} + TECHDOCS_BUCKET_NAME: backstage-codeidp-techdocs TECHDOCS_GCS_CREDENTIALS: ${{ secrets.TECHDOCS_GCS_CREDENTIALS }} + TECHDOCS_REGION: europe-west10 ENTITY_NAMESPACE: 'default' ENTITY_KIND: 'Component' ENTITY_NAME: 'code-idp-docs' @@ -25,28 +26,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Enable Corepack - run: corepack enable - - - name: Set Yarn Version - run: corepack prepare yarn@4.4.1 --activate - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'yarn' - - name: Setup Python - uses: actions/setup-python@v4 + - uses: actions/setup-node@v3 + - uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.9' - name: Install techdocs-cli - run: yarn global add @techdocs/cli + run: sudo npm install -g @techdocs/cli - name: Install mkdocs and mkdocs-plugin run: python3 -m pip install mkdocs-techdocs-core==1.*