update doc and license year #2
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: Generate documentation | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.5 | |
- name: Install dependencies | |
run: | | |
gem install bundler | |
bundle install | |
- name: Generate documentation | |
run: bundle exec rake yard | |
- name: Upload documentation | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc | |
path: doc | |
push: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
name: Push documentation | |
needs: generate | |
steps: | |
- uses: actions/download-artifact@v4 | |
name: Download documentation | |
with: | |
pattern: doc | |
path: doc | |
merge-multiple: true | |
- name: Push documentation | |
uses: crazy-max/ghaction-github-pages@v3 | |
with: | |
target_branch: doc | |
build_dir: doc | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |