Skip to content

Commit 099545c

Browse files
authored
Merge pull request #3 from iamsdas/ci
[CI] Add build and release workflow
2 parents c1bc91b + 2492599 commit 099545c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
build_and_release:
8+
name: Build and release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 12.9.1
17+
cache: 'npm'
18+
- name: Setup dependencies
19+
run: |
20+
npm ci
21+
npm i -g nexe
22+
- name: Build artifacts
23+
run: make
24+
- name: Release artifacts
25+
uses: ncipollo/release-action@v1
26+
with:
27+
artifacts: 'kubeopenapi-jsonschema*'
28+
allowUpdates: true
29+
omitBodyDuringUpdate: true
30+
omitNameDuringUpdate: true
31+
token: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ linux:
88

99
windows:
1010
nexe index.js -t windows-x64 -o kubeopenapi-jsonschema -r "./node_modules/**/*"
11+
12+
alpine:
13+
nexe index.js -t alpine-x64 -o kubeopenapi-jsonschema -r "./node_modules/**/*"

0 commit comments

Comments
 (0)