|
33 | 33 | JEKYLL_ENV=production bundle exec jekyll build |
34 | 34 | JEKYLL_ENV=production bundle exec jekyll doctor |
35 | 35 | # SKIP_BUILD=true bundle exec rake test |
36 | | - # TODO: サイトが出来上がったら上記テストも走らせると吉 |
| 36 | + # NOTE: サイトが仕上がったら、上記テストを走らせると自動検知できる。 |
| 37 | + # ただ初期は自動検知の通知が多すぎるので手動で実行するのが吉。 |
37 | 38 |
|
38 | 39 | # Deploy job is triggered only pushed to main branch && CI passed |
39 | 40 | deploy: |
@@ -61,23 +62,23 @@ jobs: |
61 | 62 | run: | |
62 | 63 | JEKYLL_ENV=production bundle exec jekyll build |
63 | 64 |
|
64 | | - - name: 🤖 Generate individual pages by projects.yml data |
65 | | - run: | |
66 | | - bundle exec rake upsert_project_pages_by_data |
67 | | - if [ -n "$(git status ./_pages --porcelain)" ]; then |
68 | | - if ( ruby -ryaml -e "p YAML.unsafe_load(STDIN.read)" < _data/projects.yml > /dev/null ); then |
69 | | - git config --global user.name "takusandayooo" |
70 | | - git config --global user.email "[email protected]" |
71 | | - git checkout main |
72 | | - git add _pages/exhibition |
73 | | - git add Gemfile.lock |
74 | | - git commit -m '🤖 Upsert project page(s) by GitHub Actions' |
75 | | - # git push origin |
76 | | - git push origin main |
77 | | - else |
78 | | - echo "Detect syntax error in '_data/projects.yml' file, check its syntax." |
79 | | - fi |
80 | | - fi |
| 65 | + #- name: 🤖 Generate individual pages by projects.yml data |
| 66 | + # run: | |
| 67 | + # bundle exec rake upsert_project_pages_by_data |
| 68 | + # if [ -n "$(git status ./_pages --porcelain)" ]; then |
| 69 | + # if ( ruby -ryaml -e "p YAML.unsafe_load(STDIN.read)" < _data/projects.yml > /dev/null ); then |
| 70 | + # # デフォルトでは内情に詳しい @yasulab としていますが、適宜ユーザー名を変えてください。 |
| 71 | + # git config --global user.name "yasulab" |
| 72 | + # git config --global user.email "[email protected]" |
| 73 | + # git checkout main |
| 74 | + # git add _pages/exhibition |
| 75 | + # git add Gemfile.lock |
| 76 | + # git commit -m '🤖 Upsert project page(s) by GitHub Actions' |
| 77 | + # git push origin main |
| 78 | + # else |
| 79 | + # echo "Detect syntax error in '_data/projects.yml' file, check its syntax." |
| 80 | + # fi |
| 81 | + # fi |
81 | 82 |
|
82 | 83 | - name: 🚀 Deploy to GitHub Pages |
83 | 84 | if: github.ref == 'refs/heads/main' && job.status == 'success' |
|
0 commit comments