diff --git a/.github/workflows/map-build.yaml b/.github/workflows/map-build.yaml new file mode 100644 index 0000000..ffe4cc9 --- /dev/null +++ b/.github/workflows/map-build.yaml @@ -0,0 +1,64 @@ +name: Build distribution artifact for map.nycmesh.net + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + + # Run every 10 minutes to fetch new map updates from the database and create an artifact with the new data + schedule: + - cron: "*/10 * * * *" + +# Default to bash +defaults: + run: + shell: bash + +env: + NODE_OPTIONS: '--openssl-legacy-provider' + +jobs: + # Build job + build: + runs-on: ubuntu-22.04 + env: + HUGO_VERSION: 0.69.2 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass + run: sudo snap install dart-sass + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Update map + env: + STANDALONE_MAP_BUILD: true + run: sh update-map.sh + - name: Build with Hugo + env: + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache + HUGO_ENVIRONMENT: production + run: | + hugo \ + --minify \ + --baseURL "https://nycmesh.net/" + - name: Build Map Payload + run: | + mkdir -p public/map/img/ + mv public/img/map/ public/map/img/map/ + mv public/favicon.ico public/map/favicon.ico + - name: Publish map site build for map.nycmesh.net to fetch and host + uses: actions/upload-artifact@v4 + with: + name: map-site-build + path: public/map/ + retention-days: 7 diff --git a/content/map/_index.md b/content/map/_index.md index 7ffa1e6..b5002c4 100644 --- a/content/map/_index.md +++ b/content/map/_index.md @@ -14,7 +14,7 @@ Hubs generally have a fast wireless connection and can connect other rooftops in Supernodes (SN) have fiber connections. Two of our supernodes are located at data centers with backbone internet connections. Our third supernode "131 Broome" is connected via leased fiber to the 111 8th Ave data center. -If there is a supernode or hub node (blue dot) within range of your building, you may be able to join our network. The potential nodes are from our [join form](/join). We are working to turn these into active nodes by expanding our coverage and increasing our rate of installs. +If there is a supernode or hub node (blue dot) within range of your building, you may be able to join our network. The potential nodes are from our [join form]({{< ref "/join" >}}). We are working to turn these into active nodes by expanding our coverage and increasing our rate of installs. The blue lines are over-the-air connections, yellow are fiber, purple are VPN and gray lines are speculative connections. diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 98250a7..092cd5d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,7 +2,7 @@
@@ -25,7 +25,7 @@

Network

  • Network Status
  • Stats
  • Peering
  • -
  • Sponsors
  • +
  • Sponsors
  • diff --git a/layouts/partials/header.html b/layouts/partials/header.html index fc391a3..0b9b756 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,7 +1,7 @@
    - +