Skip to content

Commit

Permalink
GH Pages: init
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Jan 26, 2025
1 parent 0599f7d commit ac94bdb
Show file tree
Hide file tree
Showing 8 changed files with 400 additions and 28 deletions.
4 changes: 1 addition & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# VITE_SUPABASE_URL=your-project-url
# VITE_SUPABASE_ANON_KEY=your-anon-key

VITE_BASE_URL=/
VITE_API_BASE_URL=http://localhost:8000/api/v1
VITE_CSRF_TOKEN=CJfq0TIPX93tN97V-PUl_lAjdhYaX-uvO0agCg1bI68CdS5-h9NHeKqVL0gpSwtXxgi0z7X2NWsRTPVR_UnNHA
3 changes: 3 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_BASE_URL=/geobtaa/rui/
VITE_API_BASE_URL=http://data-api.ngrok.io/api/v1
VITE_CSRF_TOKEN=CJfq0TIPX93tN97V-PUl_lAjdhYaX-uvO0agCg1bI68CdS5-h9NHeKqVL0gpSwtXxgi0z7X2NWsRTPVR_UnNHA
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- develop

permissions:
contents: write

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

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build
env:
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
VITE_CSRF_TOKEN: ${{ secrets.VITE_CSRF_TOKEN }}

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Loading

0 comments on commit ac94bdb

Please sign in to comment.