-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy path.rultor.yml
56 lines (55 loc) · 2.35 KB
/
.rultor.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright (c) 2014-2025 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so. The Software doesn't include files with .md extension.
# That files you are not allowed to copy, distribute, modify, publish, or sell.
#
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
---
docker:
directory: repo
assets:
secrets.yml: "yegor256/home#assets/blog/secrets.yml"
chatgpt-key.txt: "yegor256/home#assets/blog/chatgpt-key.txt"
id_rsa: "yegor256/home#assets/blog/id_rsa"
id_rsa.pub: "yegor256/home#assets/blog/id_rsa.pub"
install: |
bundle lock --no-color
bundle install --no-color
merge:
script: |
LC_ALL=en_US.UTF-8 bundle exec rake
deploy:
# yamllint disable rule:line-length
script: |
export JEKYLL_ENV=production
LC_ALL=en_US.UTF-8 bundle exec rake
mkdir ~/.ssh
mv ../id_rsa ../id_rsa.pub ~/.ssh
chmod -R 600 ~/.ssh/*
echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config
git config --global user.email "rultor@yegor256.com"
git config --global user.name "Rultor"
echo -e "chatgpt-translate:\n api_key_file: $(pwd)/../chatgpt-key.txt" > _config-deploy.yml
LC_ALL=en_US.UTF-8 jgd
rvm default 2.7.6 && source /usr/local/rvm/scripts/rvm
ruby -v
gem install ffi -v 1.16.3
gem install fontcustom -v 2.0.0
fontcustom --version
"$(pwd)/_glyphs/compile.sh" /tmp/icons
git checkout gh-pages
git pull
for e in svg ttf woff eot css; do cp "/tmp/icons/icons.${e}" css; git add "css/icons.${e}"; done
git commit -am 'new glyphs' || echo no changes in glyphs
git push origin gh-pages