From 3953f2b1679fa909b295f575a1e527d4bf64bb61 Mon Sep 17 00:00:00 2001 From: Andy Yu <67715364+andyyu824@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:35:49 -1000 Subject: [PATCH] modify build-and-deploy.yml --- .env | 2 +- .github/workflows/build-and-deploy.yml | 24 +++++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.env b/.env index d653e3ac..e9aa22f1 100644 --- a/.env +++ b/.env @@ -1,6 +1,6 @@ VITE_SERVERLESS_DEPLOYMENT = "false" VITE_TAPIS_BASE_URL = "https://dev.tapis.io" -; VITE_TAPIS_BASE_URL = "https://dev.develop.tapis.io" +# VITE_TAPIS_BASE_URL = "https://dev.develop.tapis.io" # Ensure there is no ending slash! ### Run npm run init-project after changing VITE_TAPIS_BASE_URL. diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 5b37bd2c..0954dc83 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -7,27 +7,45 @@ on: paths-ignore: - "**/README.md" workflow_dispatch: + +env: + ACTIONS_STEP_DEBUG: true + jobs: build: runs-on: ubuntu-latest steps: - name: checkout code uses: actions/checkout@v4 + + - name: Debug Environment Variables + run: env + + - name: Debug Node.js Version + run: node --version + - name: Use Node.js 22.9.0 uses: actions/setup-node@v4 with: node-version: 22.9.0 + - name: Debug Installed Node.js Version + run: node --version + - name: clean workspace run: npm cache clean --force && rm -rf node_modules && rm package-lock.json + - name: install dependencies - run: npm install + run: npm install # - name: add config # run: echo "${{ secrets.CONFIG_JSON }}" | base64 -d > src/config.json - name: build - run: npm run init-project - + run: npm run init-project + + - name: Debug Build Directory + run: ls -la build + - name: upload artifacts uses: actions/upload-pages-artifact@v3 with: