mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
update action
This commit is contained in:
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
@@ -3,10 +3,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: 'main'
|
branches: 'main'
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: website
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_site:
|
build_site:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -20,20 +16,26 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: website/package-lock.json
|
cache-dependency-path: website/package-lock.json
|
||||||
|
|
||||||
|
- name: Install dependencies for gpx
|
||||||
|
run: npm install --prefix gpx
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Build gpx
|
||||||
run: npm install
|
run: npm run build --prefix gpx
|
||||||
|
|
||||||
- name: build
|
- name: Install dependencies for website
|
||||||
|
run: npm install --prefix website
|
||||||
|
|
||||||
|
- name: Build website
|
||||||
env:
|
env:
|
||||||
BASE_PATH: '/${{ github.event.repository.name }}'
|
BASE_PATH: '/${{ github.event.repository.name }}'
|
||||||
run: |
|
run: |
|
||||||
npm run build
|
npm run build --prefix website
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: 'build/'
|
path: 'build/website'
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build_site
|
needs: build_site
|
||||||
|
Reference in New Issue
Block a user