Skip to content

Commit

Permalink
chore: update GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldtse committed Jun 25, 2024
1 parent 3aa06d8 commit f02e593
Showing 1 changed file with 23 additions and 32 deletions.
55 changes: 23 additions & 32 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f02e593

Please sign in to comment.