Skip to content

Automatic ICD generation #8

Automatic ICD generation

Automatic ICD generation #8

Workflow file for this run

name: pages.yml
on:
push:
branches:
- "main_protected"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: "Generate pages"
runs-on: "ubuntu-22.04"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Disable man-db auto-update
run: sudo rm -f /var/lib/man-db/auto-update
- name: Generate skeleton
run: |
mkdir -p _site
cat << EOF > _site/index.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Redirecting...</title>
<link rel=canonical href="./icd/">
<meta http-equiv=refresh content="0; url=./icd/">
EOF
mkdir -p _site/icd
- name: Download & install asn1scc
working-directory: ${{ runner.temp }}
run: |
wget "https://github.com/scsd-cdh/asn1scc/releases/latest/download/asn1scc.linux.x86_64.zip" -O asn1scc.zip
unzip -d asn1scc asn1scc.zip
- name: Generate ICD
run: |
${{ runner.temp }}/asn1scc/asn1scc --icdacn icd.html APP/_asn1/*.asn1
mv icd.css _site/icd/icd.css
mv icd_new.html _site/icd/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4