Skip to content

Commit

Permalink
modify build-and-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andyyu824 committed Dec 26, 2024
1 parent 053ef63 commit 3953f2b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -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.
24 changes: 21 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3953f2b

Please sign in to comment.