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 Jekyll site to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - gh-pages-src | |
| jobs: | |
| github-pages: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Build Jekyll image | |
| run: docker build --platform linux/amd64 -t jekyll-build . | |
| - name: Make output dir | |
| run: mkdir _site && touch _site/.nojekyll | |
| - name: Jekyll build | |
| run: docker run --platform linux/amd64 -v `pwd`:/srv/jekyll -e JEKYLL_ENV=production jekyll-build jekyll build | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./_site | |
| cname: docs.imandra.ai | |
| - uses: 8398a7/[email protected] | |
| with: | |
| status: ${{ job.status }} | |
| fields: workflow,job,commit,repo,ref,author,took | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| if: always() |