Skip to content

Commit

Permalink
build and commit front-end
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisclark committed Jan 30, 2024
1 parent 79234ca commit b868978
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and Commit JS Bundle

on:
push:
branches:
- build-js-action
paths:
- 'explorer/src/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Read .nvmrc
id: nvm
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '${{ env.NODE_VERSION }}'

- name: Install Dependencies
run: |
npm install
- name: Build JS Bundle
run: |
npm run build
- name: Commit and Push
run: |
git config --global user.name 'Chris Clark'
git config --global user.email '[email protected]'
git add explorer/static/**
git commit -m "Automated front-end bundle build"
git push
5 changes: 3 additions & 2 deletions test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

SECRET_KEY = "shhh"
DEBUG = True
STATIC_URL = "/static/"
VITE_DEV_MODE = True

STATIC_URL = '/static/'
VITE_DEV_MODE = False

ALLOWED_HOSTS = ["0.0.0.0", "localhost", "127.0.0.1"]

Expand Down

0 comments on commit b868978

Please sign in to comment.