Update Index.md #70
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: Pelican Build | |
| on: | |
| push: | |
| branches: | |
| - src | |
| permissions: | |
| contents: write | |
| jobs: | |
| pelican-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'true' | |
| - name: Install Dependencies | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.0' # Not needed with a .ruby-version file | |
| - run: make install | |
| - name: Build Site | |
| run: make build | |
| - name: Deploy from src | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| if: github.ref == 'refs/heads/src' && github.event_name != 'pull_request' | |
| with: | |
| folder: output # The folder the action should deploy. | |
| - name: Display Diff | |
| if: github.ref != 'refs/heads/src' || github.event_name == 'pull_request' | |
| run: make diff |