-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1007 Bytes
/
ruby.yml
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
37
name: Ruby
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Build and update stateofthemap.jp
run: |
bundle update sass
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec jekyll build -b 2022
rm -rf ../stateothemap.master
git clone https://[email protected]/osmfj/stateofthemap ../stateofthemap.master
mkdir -p ../stateofthemap.master/2022/
cp -R 2022/* ../stateofthemap.master/2022/
cd ../stateofthemap.master
git config user.email [email protected]
git config user.name "OSMFJ automated builder"
git add -A 2022
git commit -m "Update from github ci sotmjp2022/${{ github.sha }}"
git push --quiet origin master > /dev/null 2>&1
env:
gh_token: ${{ secrets.GH_TOKEN }}