Skip to content

Update README.md

Update README.md #138

Workflow file for this run

name: Build Specification
on:
push:
branches-ignore: [ 'temp/*' ]
pull_request:
branches: [ master ]
jobs:
build-spec:
name: Build Specification
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: prepare
run: mkdir build
- name: build
uses: avattathil/asciidoctor-action@master
with:
program: "asciidoctor -D build --backend=html5 -o index.html specification/index.adoc"
- name: copy images
run: tar cfC - specification images | tar xfC - build
- name: archive
uses: actions/upload-artifact@v3
with:
name: SSP-Traceability-Spec
path: build/*
if-no-files-found: error
- name: extract branch name
id: extract_branch
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
- name: deploy
if: (github.ref == 'refs/heads/master' || startsWith(github.ref,'refs/heads/doc')) && github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build
destination_dir: ${{ steps.extract_branch.outputs.branch }}
enable_jekyll: true