Check building #292
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
# Auto-generated by Cimas: Do not edit it manually! | |
# See https://github.com/metanorma/cimas | |
name: docker | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
packages: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: metanorma/metanorma:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Flavor | |
uses: actions-mn/setup-flavors@v1 | |
with: | |
extra-flavors: plateau | |
github-pakages-token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} | |
use-bundler: true | |
- name: Print Metanorma version | |
run: metanorma --version | |
- name: Metanorma generate site | |
uses: actions-mn/build-and-publish@v2 | |
with: | |
agree-to-terms: true | |
destination: artifact | |
build-collection: | |
runs-on: ubuntu-latest | |
container: | |
image: metanorma/metanorma:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Flavor | |
uses: actions-mn/setup-flavors@v1 | |
with: | |
extra-flavors: plateau | |
github-pakages-token: ${{ secrets.METANORMA_CI_PAT_TOKEN }} | |
use-bundler: true | |
- name: Print Metanorma version | |
run: metanorma --version | |
- name: Generate Metanorma collection | |
run: metanorma collection collection.yml --agree-to-terms | |
- name: Upload collection artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: collection | |
path: | | |
index.html | |
*_index.html | |
document*.html | |
collection.presentation.xml |