Skip to content

Commit

Permalink
Merge pull request #764 from rhenium/ky/actions-github-pages
Browse files Browse the repository at this point in the history
Automatically update GitHub Pages from master branch
  • Loading branch information
rhenium committed Jun 8, 2024
2 parents b6b71e7 + 0a133bb commit b37037e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 22 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitHub Pages

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
bundler-cache: true
- run: bundle install
- run: rake rdoc
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: html

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
22 changes: 0 additions & 22 deletions tool/update-gh-pages

This file was deleted.

0 comments on commit b37037e

Please sign in to comment.