mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 10:02:12 +00:00
Compare commits
6 Commits
cfb629dcfb
...
c9472e10be
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9472e10be | ||
|
|
2e3b22c5fa | ||
|
|
42b968372b | ||
|
|
415e7b492f | ||
|
|
2ea8e46723 | ||
|
|
977c6c6dde |
96
.github/workflows/deploy.yml
vendored
96
.github/workflows/deploy.yml
vendored
@@ -1,63 +1,63 @@
|
|||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: 'main'
|
branches: 'main'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_site:
|
build_site:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 24
|
||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
gpx/package-lock.json
|
gpx/package-lock.json
|
||||||
website/package-lock.json
|
website/package-lock.json
|
||||||
|
|
||||||
- name: Install dependencies for gpx
|
- name: Install dependencies for gpx
|
||||||
run: npm install --prefix gpx
|
run: npm install --prefix gpx
|
||||||
|
|
||||||
- name: Build gpx
|
- name: Build gpx
|
||||||
run: npm run build --prefix gpx
|
run: npm run build --prefix gpx
|
||||||
|
|
||||||
- name: Install dependencies for website
|
- name: Install dependencies for website
|
||||||
run: npm install --prefix website
|
run: npm install --prefix website
|
||||||
|
|
||||||
- name: Create env file
|
- name: Create env file
|
||||||
run: |
|
run: |
|
||||||
touch website/.env
|
touch website/.env
|
||||||
echo PUBLIC_MAPBOX_TOKEN=${{ secrets.PUBLIC_MAPBOX_TOKEN }} >> website/.env
|
echo PUBLIC_MAPBOX_TOKEN=${{ secrets.PUBLIC_MAPBOX_TOKEN }} >> website/.env
|
||||||
cat website/.env
|
cat website/.env
|
||||||
|
|
||||||
- name: Build website
|
- name: Build website
|
||||||
env:
|
env:
|
||||||
BASE_PATH: ''
|
BASE_PATH: ''
|
||||||
run: |
|
run: |
|
||||||
npm run build --prefix website
|
npm run build --prefix website
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: 'website/build/'
|
path: 'website/build/'
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build_site
|
needs: build_site
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ Soubory můžete také přetáhnout přímo ze souborového systému do okna.
|
|||||||
|
|
||||||
Vytvořit kopii aktuálně vybraných souborů.
|
Vytvořit kopii aktuálně vybraných souborů.
|
||||||
|
|
||||||
### <FileX size="16" class="inline-block" style="margin-bottom: 2px" /> Delete
|
### <FileX size="16" class="inline-block" style="margin-bottom: 2px" /> Smazat
|
||||||
|
|
||||||
Smazat aktuálně vybrané soubory.
|
Smazat aktuálně vybrané soubory.
|
||||||
|
|
||||||
### <FileX size="16" class="inline-block" style="margin-bottom: 2px" /> Delete all
|
### <FileX size="16" class="inline-block" style="margin-bottom: 2px" /> Smazat vše
|
||||||
|
|
||||||
Smazat všechny soubory.
|
Smazat všechny soubory.
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { languages } from '$lib/languages';
|
import { languages } from '../languages';
|
||||||
|
|
||||||
function localizeManifest(manifestTemplateData: any, language: string) {
|
function localizeManifest(manifestTemplateData: any, language: string) {
|
||||||
const localizedManifestFile = `static/${language}.manifest.webmanifest`;
|
const localizedManifestFile = `static/${language}.manifest.webmanifest`;
|
||||||
|
|||||||
Reference in New Issue
Block a user