diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..54a02c9 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +on: + push: + # branches: [main] + paths-ignore: + - '*.md' +permissions: + contents: write +jobs: + test: + runs-on: ubuntu-latest + name: Run the action on a test graph and publish + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build graph's SPA + uses: logseq/publish-spa@feat/db + with: + theme-mode: dark + accent-color: cyan + version: 92cc1ce38c08daf9a3ff455d2c2bfab273b98c46 + + - name: Add a nojekyll file # to make sure asset paths are correctly identified + run: touch $GITHUB_WORKSPACE/www/.nojekyll + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: www