Skip to content

Commit 7ce125a

Browse files
author
Michael Lacore
authored
Adding bundle build action (#222)
Tested with forked repo and private test bundle
1 parent c443f54 commit 7ce125a

File tree

5 files changed

+27956
-5
lines changed

5 files changed

+27956
-5
lines changed

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ Deploys a configured application to Massdriver.
145145

146146
```yaml
147147
jobs:
148-
publish:
148+
deploy:
149149
runs-on: ubuntu-latest
150150
env:
151151
MASSDRIVER_API_KEY: ${{ secrets.MASSDRIVER_API_KEY }}
@@ -162,14 +162,13 @@ jobs:
162162
manifest: db
163163
```
164164

165-
166165
### App Patch
167166

168167
This action will patch the parameters of an existing application.
169168

170169
```yaml
171170
jobs:
172-
publish:
171+
patch:
173172
runs-on: ubuntu-latest
174173
env:
175174
MASSDRIVER_API_KEY: ${{ secrets.MASSDRIVER_API_KEY }}
@@ -208,13 +207,32 @@ jobs:
208207
uses: massdriver-cloud/actions/bundle_publish@v4
209208
```
210209

210+
### Bundle Build
211+
212+
Use this action to build schemas from massdriver.yaml:
213+
214+
```yaml
215+
jobs:
216+
build:
217+
runs-on: ubuntu-latest
218+
env:
219+
MASSDRIVER_API_KEY: ${{ secrets.MASSDRIVER_API_KEY }}
220+
MASSDRIVER_ORG_ID: ${{ vars.MASSDRIVER_ORG_ID }}
221+
steps:
222+
- uses: actions/checkout@v3
223+
- name: Install Massdriver CLI
224+
uses: massdriver-cloud/actions@v4
225+
- name: Build Bundle
226+
uses: massdriver-cloud/actions/bundle_build@v4
227+
```
228+
211229
### Image Push
212230

213231
Use this action to push an image, using the Massdriver CLI, to any of the supported cloud providers.
214232

215233
```yaml
216234
jobs:
217-
publish:
235+
image_push:
218236
runs-on: ubuntu-latest
219237
env:
220238
MASSDRIVER_API_KEY: ${{ secrets.MASSDRIVER_API_KEY }}

bundle_build/action.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: 'Build Bundle'
2+
description: 'Builds schemas from massdriver.yaml file'
3+
author: 'Massdriver, Inc.'
4+
inputs:
5+
build-directory:
6+
description: |
7+
Path to a directory containing a massdriver.yaml file.
8+
required: false
9+
default: '.'
10+
runs:
11+
using: node20
12+
main: '../dist/bundle_build/index.js'

0 commit comments

Comments
 (0)