-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 862 Bytes
/
main.yml
File metadata and controls
31 lines (27 loc) · 862 Bytes
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
name: CI
on:
push:
branches:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout rodones-map
uses: actions/checkout@v3
with:
path: rodones-map
- name: Checkout rodones-static
uses: actions/checkout@v3
with:
repository: ${{ secrets.RODONES_STATIC_SITE_REPO }}
token: ${{ secrets.RODONES_STATIC_SITE_GH_TOKEN }}
path: rodones-static
- name: Build and publish
run: |
cd rodones-static
git config --global user.email "github-actions@github.com"
git config --global user.name "rodones-ci"
echo 'RODONES_MAP_FOLDER="../rodones-map"' > .env
./sync.sh "$([[ "${{ github.ref_name }}" == "master" ]] && echo "map" || echo "map-${{ github.ref_name }}")"