update action

This commit is contained in:
vcoppe
2024-06-19 20:34:01 +02:00
parent 796d195c49
commit 3a8dd9ac70

View File

@@ -3,10 +3,6 @@ on:
push:
branches: 'main'
defaults:
run:
working-directory: website
jobs:
build_site:
runs-on: ubuntu-latest
@@ -21,19 +17,25 @@ jobs:
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install dependencies
run: npm install
- name: Install dependencies for gpx
run: npm install --prefix gpx
- name: build
- name: Build gpx
run: npm run build --prefix gpx
- name: Install dependencies for website
run: npm install --prefix website
- name: Build website
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
npm run build
npm run build --prefix website
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'build/'
path: 'build/website'
deploy:
needs: build_site