Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 5 additions & 29 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: generate

on:
push:
branches: [ main ]
branches: [main]
pull_request:
workflow_dispatch:

Expand All @@ -12,34 +12,10 @@ permissions:
id-token: write

concurrency:
group: "pages"
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
container:
image: metanorma/metanorma:latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cache Metanorma assets
uses: actions-mn/cache@v1

- name: Metanorma generate site
uses: actions-mn/build-and-publish@v2
with:
agree-to-terms: true
destination: gh-pages
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
site:
uses: actions-mn/.github/.github/workflows/metanorma-generate.yml@v1
secrets: inherit
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches: [main]
paths: ['sources/**', 'metanorma.yml', 'metanorma.release.yml']
workflow_dispatch:
inputs:
include-pattern:
description: 'Glob pattern to filter documents for release'
required: false
default: '*'
force:
description: 'Force release even if content is unchanged'
required: false
type: boolean
default: false

permissions:
contents: write

jobs:
release:
uses: actions-mn/.github/.github/workflows/metanorma-release.yml@v1
with:
default-visibility: private
include-pattern: ${{ github.event.inputs.include-pattern || '*' }}
force: ${{ github.event.inputs.force || 'false' }}
secrets: inherit
3 changes: 3 additions & 0 deletions metanorma.release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
documents:
- source: sources/cc-58020.adoc
- source: sources/draft-daboo-icalendar-vpatch.adoc
Loading