Skip to content

Commit 639f3b4

Browse files
authored
ci: update metanorma workflows and add release manifest (#3)
* ci: update metanorma workflows and add release manifest * ci: retrigger CI with fixed shared workflow
1 parent 6398fee commit 639f3b4

3 files changed

Lines changed: 37 additions & 29 deletions

File tree

.github/workflows/generate.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: generate
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
77
workflow_dispatch:
88

@@ -12,34 +12,10 @@ permissions:
1212
id-token: write
1313

1414
concurrency:
15-
group: "pages"
15+
group: pages
1616
cancel-in-progress: true
1717

1818
jobs:
19-
build:
20-
runs-on: ubuntu-latest
21-
container:
22-
image: metanorma/metanorma:latest
23-
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
26-
27-
- name: Cache Metanorma assets
28-
uses: actions-mn/cache@v1
29-
30-
- name: Metanorma generate site
31-
uses: actions-mn/build-and-publish@v2
32-
with:
33-
agree-to-terms: true
34-
destination: gh-pages
35-
deploy:
36-
if: ${{ github.ref == 'refs/heads/main' }}
37-
environment:
38-
name: github-pages
39-
url: ${{ steps.deployment.outputs.page_url }}
40-
runs-on: ubuntu-latest
41-
needs: build
42-
steps:
43-
- name: Deploy to GitHub Pages
44-
id: deployment
45-
uses: actions/deploy-pages@v4
19+
site:
20+
uses: actions-mn/.github/.github/workflows/metanorma-generate.yml@v1
21+
secrets: inherit

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths: ['sources/**', 'metanorma.yml', 'metanorma.release.yml']
7+
workflow_dispatch:
8+
inputs:
9+
include-pattern:
10+
description: 'Glob pattern to filter documents for release'
11+
required: false
12+
default: '*'
13+
force:
14+
description: 'Force release even if content is unchanged'
15+
required: false
16+
type: boolean
17+
default: false
18+
19+
permissions:
20+
contents: write
21+
22+
jobs:
23+
release:
24+
uses: actions-mn/.github/.github/workflows/metanorma-release.yml@v1
25+
with:
26+
default-visibility: private
27+
include-pattern: ${{ github.event.inputs.include-pattern || '*' }}
28+
force: ${{ github.event.inputs.force || 'false' }}
29+
secrets: inherit

metanorma.release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
documents:
2+
- source: sources/cc-58020.adoc
3+
- source: sources/draft-daboo-icalendar-vpatch.adoc

0 commit comments

Comments
 (0)