Merge pull request #361 from katyhuff/issue360 #44
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
# Preamble | |
name: Deploy arfc.github.io to GitHub Pages | |
on: | |
push: | |
branches: | |
- 'source' | |
# enable workflow to be run manually | |
workflow_dispatch: | |
jobs: | |
deploy-site: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.0 | |
bundler-cache: false | |
- name: Build the website source | |
run: bundle exec rake generate | |
- name: Deploy website to master branch | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: master | |
publish_dir: ./_site | |
commit_message: "Update website at commit: ${{ github.event.head_commit.id }}" |