From 2e3b22c5fac898ff3cee0b0c42110a9c31cdf129 Mon Sep 17 00:00:00 2001 From: vcoppe Date: Wed, 12 Nov 2025 18:26:35 +0100 Subject: [PATCH] update deploy action --- .github/workflows/deploy.yml | 98 ++++++++++++++++++------------------ 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f05cc40da..e3dcb61ce 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,63 +1,63 @@ name: Deploy to GitHub Pages on: - push: - branches: 'main' + push: + branches: 'main' jobs: - build_site: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 + build_site: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - cache-dependency-path: | - gpx/package-lock.json - website/package-lock.json - - - name: Install dependencies for gpx - run: npm install --prefix gpx + - name: Install Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + cache: npm + cache-dependency-path: | + gpx/package-lock.json + website/package-lock.json - - name: Build gpx - run: npm run build --prefix gpx + - name: Install dependencies for gpx + run: npm install --prefix gpx - - name: Install dependencies for website - run: npm install --prefix website + - name: Build gpx + run: npm run build --prefix gpx - - name: Create env file - run: | - touch website/.env - echo PUBLIC_MAPBOX_TOKEN=${{ secrets.PUBLIC_MAPBOX_TOKEN }} >> website/.env - cat website/.env + - name: Install dependencies for website + run: npm install --prefix website - - name: Build website - env: - BASE_PATH: '' - run: | - npm run build --prefix website + - name: Create env file + run: | + touch website/.env + echo PUBLIC_MAPBOX_TOKEN=${{ secrets.PUBLIC_MAPBOX_TOKEN }} >> website/.env + cat website/.env - - name: Upload Artifacts - uses: actions/upload-pages-artifact@v3 - with: - path: 'website/build/' + - name: Build website + env: + BASE_PATH: '' + run: | + npm run build --prefix website - deploy: - needs: build_site - runs-on: ubuntu-latest + - name: Upload Artifacts + uses: actions/upload-pages-artifact@v4 + with: + path: 'website/build/' - permissions: - pages: write - id-token: write + deploy: + needs: build_site + runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + permissions: + pages: write + id-token: write - steps: - - name: Deploy - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy + id: deployment + uses: actions/deploy-pages@v4