-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (31 loc) · 1.03 KB
/
import-markers-mathias.yml
File metadata and controls
36 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 'Import markers from Mathias'
on:
workflow_dispatch
jobs:
import-markers:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Import markers
env:
URL: ${{secrets.MARKERS_URL_MATHIAS}}
run: |
mkdir -p minimap
curl --silent --location --output minimap/minimapmarkers.bin "${URL}"
node_modules/.bin/tibia-maps --from-minimap=minimap --output-dir=data --markers-only
node scripts/disable-marker-pack.mjs 'ignore'
git config user.name 'TibiaMaps.io'
git config user.email 'ci@tibiamaps.io'
git commit data/markers.json -m 'Import marker changes from Mathias’s client'
git push