Skip to content

Commit

Permalink
Add ci build with netlify publish (#75)
Browse files Browse the repository at this point in the history
* add ci script

* add netlify deployment

* debug branch name for testing

* change build dir

* netlify action ver upd

* skip build & install in netlify action

* switch ci build to trigger on master push
  • Loading branch information
mrlp4 authored Jun 26, 2024
1 parent f547a52 commit ede183a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches:
- master

permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
name: Publish Logseq graph
steps:
- uses: actions/checkout@v3
- uses: logseq/[email protected]
with:
theme-mode: dark
accent-color: green
output-directory: build
- name: Add a nojekyll file # to make sure asset paths are correctly identified
run: touch $GITHUB_WORKSPACE/build/.nojekyll
- name: Deploy to Netlify
uses: jsmrcaga/[email protected]
with:
build_directory: build
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_MESSAGE: "Deployed on new master commit"
NETLIFY_DEPLOY_TO_PROD: true
install_command: "echo Skipping installing deps"
build_command: "echo Skipping building"

0 comments on commit ede183a

Please sign in to comment.