Skip to content

Merge pull request #2 from dita-bootstrap/dependabot/npm_and_yarn/lef… #39

Merge pull request #2 from dita-bootstrap/dependabot/npm_and_yarn/lef…

Merge pull request #2 from dita-bootstrap/dependabot/npm_and_yarn/lef… #39

Workflow file for this run

name: CI
'on':
push:
branches:
- master
- develop
workflow_dispatch:
jobs:
build-dita:
name: Build DITA
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v6
- name: Calculate short SHA
uses: benjlevesque/short-sha@v3.0
id: short-sha
with:
length: 7
- run: echo $SHA
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- run: echo $SHA
env:
SHA: ${{ env.SHA }}
- name: Build Bootstrap
uses: dita-ot/dita-ot-action@4.4
with:
install: |
apt-get update -q
export DEBIAN_FRONTEND=noninteractive
apt-get install -qy --no-install-recommends nodejs
nodejs -v
mkdir -p dtd/base
curl -L https://raw.githubusercontent.com/dita-bootstrap/dita-bootstrap.specialization/master/dtd/base/bootstrapDomain.ent -o dtd/base/bootstrapDomain.ent
curl -L https://raw.githubusercontent.com/dita-bootstrap/dita-bootstrap.specialization/master/dtd/base/bootstrapDomain.mod -o dtd/base/bootstrapDomain.mod
curl -L https://raw.githubusercontent.com/dita-bootstrap/dita-bootstrap.specialization/master/dtd/base/commonElements.mod -o dtd/base/commonElements.mod
plugins: |
fox.jason.extend.css
https://github.com/dita-bootstrap/dita-bootstrap.specialization/archive/develop.zip
https://github.com/dita-bootstrap/dita-bootstrap.html/archive/develop.zip
https://github.com/dita-bootstrap/dita-bootstrap.extension.specialization/archive/develop.zip
https://github.com/dita-bootstrap/dita-bootstrap.extension/archive/develop.zip
https://github.com/dita-bootstrap/dita-bootstrap.lunr/archive/develop.zip
https://github.com/jason-fox/fox.jason.prismjs/archive/master.zip
fox.jason.favicon
fox.jason.open-graph
project: .github/dita-ot/html.xml
- name: Deploy HTML 🚀
uses: JamesIves/github-pages-deploy-action@v4.8.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: out/html # The folder the action should deploy.
commit-message: '🚀 Deploy ${{ env.SHA }} to GitHub Pages'
git-config-name: 'GitHub Action'
git-config-email: 'action@github.com'