Skip to content

Commit 249683b

Browse files
💚 - chore: attempt to fix the build
1 parent 1deb8ae commit 249683b

File tree

5 files changed

+4204
-18772
lines changed

5 files changed

+4204
-18772
lines changed

.github/workflows/ci.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ jobs:
3838
npm run lint
3939
CI=false npm run build
4040
env:
41-
REACT_APP_API_URL: "http://localhost:8000"
41+
OAB_API_URL: "http://localhost:8000"
4242

4343
- uses: actions/upload-artifact@v4
4444
with:
4545
name: build
46-
path: ${{ github.workspace }}/frontend/build/
46+
path: ${{ github.workspace }}/frontend/dist/
4747
retention-days: 1
4848
if-no-files-found: error
4949

@@ -234,14 +234,13 @@ jobs:
234234
- uses: actions/download-artifact@v4
235235
with:
236236
name: build
237-
path: ${{ github.workspace }}/frontend/build
237+
path: ${{ github.workspace }}/frontend/dist
238238

239239
- name: Run tests
240240
working-directory: backend
241241
run: |
242-
ln -s ${{ github.workspace }}/frontend/build/static/css ${{ github.workspace }}/backend/src/openarchiefbeheer/static/css
243-
ln -s ${{ github.workspace }}/frontend/build/static/js ${{ github.workspace }}/backend/src/openarchiefbeheer/static/js
244-
ln -s ${{ github.workspace }}/frontend/build/index.html ${{ github.workspace }}/backend/src/openarchiefbeheer/templates/index.html
242+
ln -s ${{ github.workspace }}/frontend/dist/static/* ${{ github.workspace }}/backend/src/openarchiefbeheer/static/
243+
ln -s ${{ github.workspace }}/frontend/dist/index.html ${{ github.workspace }}/backend/src/openarchiefbeheer/templates/index.html
245244
python src/manage.py compilemessages
246245
python src/manage.py collectstatic --noinput --link
247246
python src/manage.py test openarchiefbeheer --tag=e2e

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ backend/log/nginx/*.log*
4141

4242
# Static files
4343
backend/src/openarchiefbeheer/templates/index.html
44-
backend/src/openarchiefbeheer/static/css
45-
backend/src/openarchiefbeheer/static/js
44+
backend/src/openarchiefbeheer/static/*.css
45+
backend/src/openarchiefbeheer/static/*.js

0 commit comments

Comments
 (0)