-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (35 loc) · 1.16 KB
/
bundle.yml
File metadata and controls
40 lines (35 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Simple workflow for bundling schemas into one
name: Bundle schemas
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:
tags:
- "*"
permissions:
contents: write
jobs:
bundle:
runs-on: ubuntu-latest
name: generate-bundle
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Redocly CLI Bundle Part 1
uses: fluximus-prime/redocly-cli-github-action@v1
with:
args: 'bundle api/part1/openapi/openapi-connectedsystems-1.yaml -o ogcapi-connectedsystems-1.bundled.oas31.yaml'
- name: Redocly CLI Bundle Part 2
uses: fluximus-prime/redocly-cli-github-action@v1
with:
args: 'bundle -d api/part2/openapi/openapi-connectedsystems-2.yaml -o ogcapi-connectedsystems-2.bundled.oas31.yaml'
- name: release
uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
id: create_release
with:
prerelease: true
fail_on_unmatched_files: true
files: |
ogcapi-connectedsystems-1.bundled.oas31.yaml
ogcapi-connectedsystems-2.bundled.oas31.yaml