diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index aac07ec..9c51289 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -1,44 +1,35 @@ -# Auto-generated by Cimas: Do not edit it manually! -# See https://github.com/metanorma/cimas name: generate on: push: - branches: [ master, main ] + branches: [ main ] pull_request: - paths-ignore: - - .gitlab-ci.yml - - .github/workflows/test.yml - - .github/workflows/docker.yml - - .github/workflows/docker-pres_xml.yml workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + jobs: - test-linux: - name: Test on ${{ matrix.os }} - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [ ubuntu-latest, windows-latest, macos-latest ] + build: + runs-on: ubuntu-latest + container: + image: metanorma/metanorma:latest steps: - - uses: actions/checkout@v2 - with: - token: ${{ secrets.METANORMA_CI_PAT_TOKEN || github.token }} - submodules: true + - name: Checkout + uses: actions/checkout@v3 - - uses: actions/cache@v2 - with: - path: ~/.cache/xml2rfc - key: xml2rfc - restore-keys: xml2rfc + - name: Cache Metanorma assets + uses: actions-mn/cache@v1 - - uses: actions/cache@v2 + - name: Metanorma generate site + uses: actions-mn/build-and-publish@main with: - path: ~/.fontist - key: fontist-${{ runner.os }} - restore-keys: fontist-${{ runner.os }} - - - uses: actions-mn/setup@master - - - run: metanorma site generate --agree-to-terms + token: ${{ secrets.GITHUB_TOKEN }} + agree-to-terms: true + destination: artifact