Skip to content

Update publish.yml

Update publish.yml #3

Workflow file for this run

on: [push]
permissions:
contents: write
jobs:
build_site:
runs-on: ubuntu-latest
name: Publish Logseq graph
steps:
- uses: actions/checkout@v4
- uses: logseq/publish-spa@v0.3.1
- name: Add a nojekyll file # to make sure asset paths are correctly identified
run: touch $GITHUB_WORKSPACE/www/.nojekyll
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
path: 'www/'
deploy:
needs: build_site
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4