Merge branch 'maplibre:main' into main #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Benchmarks | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
upload_benchmarks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18 x64 | |
uses: actions/[email protected] | |
with: | |
node-version: 18 | |
architecture: x64 | |
- name: Install | |
run: npm ci | |
- name: Build benchmarks | |
run: npm run build-benchmarks | |
- name: Copy benchmarks_generated.js | |
run: | | |
mkdir tmp | |
cp test/bench/versions/benchmarks_generated.js tmp | |
cp test/bench/versions/benchmarks_generated.js.map tmp | |
- name: Upload to GitHub Pages (main) | |
if: startsWith(github.ref, 'refs/heads/main') | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: tmp | |
destination_dir: benchmarks/main |