Update dependabot_update_rbis_run.yml #15
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: Publish docs | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Publish documentation website | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
bundler-cache: true | |
- name: Configure git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Generate documentation | |
run: bundle exec rake rdoc | |
- name: Commit to gh-pages | |
run: | | |
git add docs | |
git commit -m "Publish website $(git log --format=format:%h -1)" | |
git push --force origin main:gh-pages |