Update README. #26
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: Build and Deploy | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Remove Gemfile.lock | |
| run: rm -f Gemfile.lock | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| timeout-minutes: 15 | |
| - name: Run tests | |
| run: bundle exec rspec | |
| - name: Build gem | |
| run: gem build mint.gemspec | |
| # - name: Create pages directory | |
| # if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
| # run: mkdir -p _site | |
| # - name: Publish documentation with Mint | |
| # if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
| # run: | | |
| # bundle exec bin/mint publish doc/*.md --destination _site --template basic --navigation | |
| # - name: Setup Pages | |
| # if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
| # uses: actions/configure-pages@v4 | |
| # - name: Upload artifact | |
| # if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
| # uses: actions/upload-pages-artifact@v3 | |
| # with: | |
| # path: _site | |
| # deploy: | |
| # if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
| # environment: | |
| # name: github-pages | |
| # url: ${{ steps.deployment.outputs.page_url }} | |
| # runs-on: ubuntu-latest | |
| # needs: build | |
| # steps: | |
| # - name: Deploy to GitHub Pages | |
| # id: deployment | |
| # uses: actions/deploy-pages@v4 |