parse and deploy #517
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "parse and deploy" | |
on: | |
schedule: | |
- cron: '05 4 * * *' | |
pull_request: | |
workflow_dispatch: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: parse options and create search | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
#bundler-cache: true | |
- run: | | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
- run: | | |
rm -v data/options.json | |
ruby scripts/parse_appendix.rb | |
ls -al data/options.json | |
cat data/options.json | jq ".last_update" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ github.token }} | |
publish_dir: . |