Skip to content

Commit

Permalink
Merge pull request #2 from hekx11/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
hekx11 authored Nov 9, 2023
2 parents 37ef3e5 + 147a16a commit d7661c0
Show file tree
Hide file tree
Showing 29 changed files with 1,978 additions and 84 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Build and deploy
run: |
npm run build
echo "VUE_APP_GOOGLE_API_KEY=${{ secrets.GOOGLE_API_KEY }}" > .env.production
npm run build
npm install -g gh-pages
gh-pages -d dist -b gh-pages
env:
NODE_ENV: production
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }} # If you have other environment variables
VITE_FIREBASE_API_KEY: ${{ secretsVITE_FIREBASE_API_KEY.}}
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN}}
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID}}
VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET}}
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID}}
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID}}
VITE_FIREBASE_MEASUREMENT_ID: ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID}}
VITE_GOOGLE_MAP_API_KEY: ${{ secrets.VITE_GOOGLE_MAP_API_KEY}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ coverage
*.njsproj
*.sln
*.sw?
.env
Loading

0 comments on commit d7661c0

Please sign in to comment.