Skip to content

Commit

Permalink
add publish-log4brains GitHub Action
Browse files Browse the repository at this point in the history
- Added a new GitHub Actions workflow to publish Log4brains
- The workflow triggers on push to the main branch
- It checks out the repository, sets up Node.js, installs Log4brains,
  builds the documentation, and deploys it to GitHub Pages
  • Loading branch information
jwilger committed Jan 9, 2025
1 parent c343a35 commit 7da9870
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-log4brains.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Log4brains
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # required by JamesIves/github-pages-deploy-action
fetch-depth: 0 # required by Log4brains to work correctly (needs the whole Git history)
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install and Build Log4brains
run: |
npm install -g log4brains
log4brains build --basePath /${GITHUB_REPOSITORY#*/}
- name: Deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: .log4brains/out
TARGET_FOLDER: log4brains

0 comments on commit 7da9870

Please sign in to comment.