Merge pull request #205 from Rushin2211/develop #150
This file contains hidden or 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-22.04 | |
| strategy: | |
| matrix: | |
| ruby: [3.1.0] | |
| steps: | |
| - name: Check out develop | |
| uses: actions/checkout@v2 | |
| with: | |
| ref: develop | |
| - uses: actions/cache@v4 | |
| 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 | |