docs: update journals for June 12 and June 18 #799
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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Guard against publish-spa sentinel collision | |
| run: | | |
| if grep -rnE 'logseq____&(amp|lt|gt|quot|apos);' pages journals; then | |
| echo "::error::Literal publish-spa sentinel token found in graph content; it will corrupt the published JSON and blank the site." | |
| exit 1 | |
| fi | |
| - name: Logseq Publish | |
| uses: logseq/publish-spa@main | |
| with: | |
| graph-directory: . | |
| output-directory: www | |
| accent-color: indigo | |
| - name: Add .nojekyll file | |
| run: touch www/.nojekyll | |
| - name: Compress graph data (stay under GitHub's 100 MB file limit) | |
| run: python3 .github/scripts/compress_logseq_db.py | |
| - name: Deploy to gh-pages | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: gh-pages | |
| folder: www | |
| clean: true | |
| clean-exclude: | | |
| .nojekyll |