Update links for reporting issues (#2956) #1234
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: Publish docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'jekyll/**' | |
| - '.github/workflows/publish_docs.yml' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'Shopify/ruby-lsp' | |
| name: Publish documentation website | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| working-directory: ./jekyll | |
| - name: Configure git | |
| run: | | |
| git config user.name github-actions | |
| git config user.email [email protected] | |
| - name: Generate documentation | |
| working-directory: ./jekyll | |
| run: bundle exec jekyll build | |
| - name: Commit to gh-pages | |
| run: | | |
| git add docs -f | |
| git commit -m "Publish website $(git log --format=format:%h -1)" | |
| git push --force origin main:gh-pages |