-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add github actions workflow * chore(logseq): config publish all pages * fix: version tag * fix: no www * fix: gh permissions * chore: try theme * chore: github actions trigger * chore: bump action version * poc: push any branches * only master trigger
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: publish | ||
permissions: | ||
contents: write | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: build and write site spa files to www | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: touch www/.nojekyll # to make sure asset paths are correctly identified | ||
run: "mkdir -p $GITHUB_WORKSPACE/www && touch $GITHUB_WORKSPACE/www/.nojekyll" | ||
|
||
- name: build spa | ||
uses: logseq/publish-spa@v0.3.1 | ||
# with: | ||
# theme_mode: dark | ||
|
||
- name: publish | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: publish | ||
folder: www | ||
clean: true |
This file contains 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