fix integrity-ext #137
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AsciiDoc Build | |
on: | |
push: | |
branches: [ "master", "main" ] | |
pull_request: | |
branches: [ "master", "main" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update ubuntu | |
run: | |
sudo apt-get update | |
- name: load dependencies | |
run: | |
sudo apt-get install -y pandoc asciidoctor asciidoc-common wkhtmltopdf | |
- name: Build docs | |
working-directory: extension-definition-specifications | |
run: | |
sh ../scripts/build_asciidoc.sh | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: extensions | |
path: temp/* | |
- name: Setup Pages | |
id: pages | |
if: github.ref == 'refs/heads/main' | |
uses: actions/configure-pages@v3 | |
- name: Upload Pages | |
uses: actions/upload-pages-artifact@v2 | |
if: github.ref == 'refs/heads/main' | |
with: | |
path: '_site' | |
- name: Deploy Pages | |
id: deployment | |
if: github.ref == 'refs/heads/main' | |
uses: actions/deploy-pages@v2 |