Skip to content

add install

add install #213

Workflow file for this run

on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
name: Publish Logseq graph
steps:
- uses: actions/[email protected]
- uses: logseq/[email protected]
with:
version: 0.10.9
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: Replace logo file
run: cp assets/logo.png $GITHUB_WORKSPACE/build/static/img/logo.png
- name: Set execute permissions for scripts
run: chmod +x ./.github/scripts/modify_html/*.sh
- name: Add meta
run: ./.github/scripts/modify_html/add_meta.sh
- name: Add analytics script
run: ./.github/scripts/modify_html/add_analytics.sh
- name: Install Netlify CLI
run: npm install -g netlify-cli
- 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"