Skip to content

Fix chapter sorting and also fixed version logic #17

Fix chapter sorting and also fixed version logic

Fix chapter sorting and also fixed version logic #17

Workflow file for this run

name: Bundle and Publish Sources
on:
push:
branches:
- '**'
- '!main'
jobs:
build:
name: Bundle and Publish Sources
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
# - name: Checkout existing bundles
# uses: actions/checkout@v3
# continue-on-error: true
# with:
# ref: gh-pages
# path: bundles
- run: npm install
- run: npm run build -- --folder ${{ steps.extract_branch.outputs.branch }}
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: ${{ steps.extract_branch.outputs.branch }}
target-folder: ${{ steps.extract_branch.outputs.branch }}