Skip to content

Commit

Permalink
ci/cd && env minor fixes (#7)
Browse files Browse the repository at this point in the history
* update: remove env from ci/cd

* update: add .end .env.production

* update: ci/cd branch

* update: env

* update: ci/cd
  • Loading branch information
nogorka authored May 14, 2024
1 parent 486fa7c commit bffdf0f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_APP_HOST="176.123.168.71"
VITE_APP_PORT=3000

2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_APP_HOST="localhost"
VITE_APP_PORT=8000
3 changes: 3 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_APP_HOST="176.123.168.71"
VITE_APP_PORT=3000

9 changes: 1 addition & 8 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ jobs:

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build
env:
VITE_GRAPH_HOPPER_KEY: ${{ secrets.GRAPH_HOPPER_KEY }}
VITE_APP_HOST: ${{ secrets.BACKEND_HOST }}
VITE_APP_PORT: ${{ secrets.BACKEND_PORT }}

- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -55,6 +51,3 @@ jobs:
overwrites-pull-request-comment: true
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }}
personal-access-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
env:
VITE_APP_HOST: ${{ secrets.BACKEND_HOST }}
VITE_APP_PORT: ${{ secrets.BACKEND_PORT }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ coverage

*.tsbuildinfo

.env
.env.production
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"build": "vite build",
"preview": "vite preview",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
"format": "prettier --write src/"
"format": "prettier --write src/",
"serve:dev": "vite --mode development",
"serve:prod": "vite --mode production"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
Expand Down

0 comments on commit bffdf0f

Please sign in to comment.