From f463fd6ed76e593f5387b0ebdb76715faa3abfbb Mon Sep 17 00:00:00 2001 From: Chris Olsen Date: Fri, 2 May 2025 12:59:09 -0600 Subject: [PATCH] fix: add github token build --- .github/workflows/deploy.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 492fbf381..b29ce8328 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,20 +16,26 @@ jobs: - uses: actions/checkout@v2 with: fetch-depth: 0 + - uses: actions/setup-node@v2 with: node-version: "22" + - uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + - run: npm ci + - name: Build env: VITE_AUTH_TOKEN: ${{ secrets.VITE_AUTH_TOKEN }} + VITE_GITHUB_TOKEN: ${{ secrets.VITE_GITHUB_TOKEN }} run: | - VITE_AUTH_TOKEN=${{secrets.VITE_AUTH_TOKEN}} npm run build + VITE_AUTH_TOKEN=${{secrets.VITE_AUTH_TOKEN}} VITE_GITHUB_TOKEN=${{secrets.VITE_GITHUB_TOKEN}} npm run build cp nginx.conf dist/ + - name: Oc login uses: redhat-actions/oc-login@v1 with: @@ -45,6 +51,7 @@ jobs: # Optional - this sets your Kubernetes context's current namespace after logging in. namespace: ui-components-build + - name: Start Build run: oc start-build ui-components-docs --from-dir dist --follow --wait