Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamataryo/vector-tiles-action
A vector tile generator with GitHub actions.
https://github.com/kamataryo/vector-tiles-action
Last synced: about 2 months ago
JSON representation
A vector tile generator with GitHub actions.
- Host: GitHub
- URL: https://github.com/kamataryo/vector-tiles-action
- Owner: kamataryo
- Created: 2022-08-08T00:04:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T00:04:28.000Z (over 2 years ago)
- Last Synced: 2023-09-17T00:27:59.167Z (over 1 year ago)
- Language: Shell
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vector tiles action
[![.github/workflows/test.yml](https://github.com/kamataryo/vector-tiles-action/actions/workflows/test.yml/badge.svg)](https://github.com/kamataryo/vector-tiles-action/actions/workflows/test.yml)
A GitHub Action to generate vector tiles.
## Getting started
```yaml
name: Build and Deploy
on: [push]jobs:
build-and-deploy:
runs-on: ubuntu-latest
name: Generate vectior tiles and deploy GitHub Pages
steps:
- name: checkout
uses: actions/checkout@v3# Generate tiles 🚀
- name: 'Generate vector tiles as *.mvt'
uses: kamataryo/vector-tiles-action@v0
id: generate_vector_tiles
with:
file: ./test/data.geojson # [Required] Data source.
output_to_directory: ./docs/tiles # [Optional] Tiles directory. The default is `docs/tiles`.
layer: data # [Optional] Layer name. The default is `data`.- name: test
run: ls -la docs/tiles# You can host vector tiles by deploying them directly to GitHub Pages 🌏
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: 'gh-pages'
folder: ./docs
```