Merge pull request #172 from Junze888/develop #112
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: Ruby | |
on: | |
push: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
ruby: [3.0.0] | |
steps: | |
- name: Check out develop | |
uses: actions/checkout@v2 | |
with: | |
ref: develop | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache | |
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: ${{ runner.os }}-gems- | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
- name: gem update | |
run: gem update --system | |
- name: Set up Bundler | |
run: gem install bundler | |
- name: Install dependencies | |
run: bundle install | |
- name: jekyll build | |
run: bundle exec jekyll build --drafts | |
- name: Create GitHub deployment | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: "${{ github.token }}" | |
publish_branch: master | |
publish_dir: _site | |
enable_jekyll: true | |
cname: xdag.io | |