diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index f0154d0..c242f47 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -24,6 +24,7 @@ jobs: - run: cd serverless/aws && npm install && npm run build && cp dist/lambda_function.zip ../../app/dist - run: cd serverless/cloudflare && npm install && npm run build && cp dist/index.js ../../app/dist - run: cd spec/v3 && cp *.pmtiles ../../app/dist + - run: cd js/examples && cp *.html ../../app/dist/examples/ - name: build_app uses: peaceiris/actions-gh-pages@v3 if: ${{ github.ref == 'refs/heads/master' }} diff --git a/app/public/examples/osm_carto.pmtiles b/app/public/examples/osm_carto.pmtiles deleted file mode 100644 index 2ad5718..0000000 Binary files a/app/public/examples/osm_carto.pmtiles and /dev/null differ diff --git a/app/public/examples/serve_localhost.go b/app/public/examples/serve_localhost.go deleted file mode 100644 index 544c9db..0000000 --- a/app/public/examples/serve_localhost.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "flag" - "log" - "net/http" -) - -func main() { - port := flag.String("p", "7000", "port to serve on") - directory := flag.String("d", ".", "the directory containing PMTiles archives") - flag.Parse() - - http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Access-Control-Allow-Origin", "*") - w.Header().Set("Access-Control-Allow-Headers", "Range") - http.ServeFile(w, r, r.URL.Path[1:]) - }) - - log.Printf("Serving %s on HTTP port: %s\n", *directory, *port) - log.Fatal(http.ListenAndServe(":"+*port, nil)) -} \ No newline at end of file diff --git a/app/public/examples/tpe_sample.pmtiles b/app/public/examples/tpe_sample.pmtiles deleted file mode 100644 index fcc0892..0000000 Binary files a/app/public/examples/tpe_sample.pmtiles and /dev/null differ