Skip to content

Commit caa2042

Browse files
committed
add release workflow
Add GitHub actions workflow for releasing a new version of the build artifact
1 parent 20326eb commit caa2042

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release UI Bundle Zip File
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
release_version:
6+
description: 'Version number of the release'
7+
required: true
8+
9+
jobs:
10+
build-ui-bundle:
11+
runs-on: ubuntu-20.04
12+
steps:
13+
- name: Checkout
14+
uses: actions/[email protected]
15+
- name: Set up Node
16+
uses: actions/[email protected]
17+
with:
18+
node-version : '15'
19+
- name: Install gulp
20+
run: npm install -g gulp-cli
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Build UI bundle
24+
run: gulp bundle
25+
- name: Add NOTICE file to build artifact
26+
run: |
27+
cd build
28+
mkdir sds-antora-ui-bundle
29+
unzip ui-bundle.zip -d sds-antora-ui-bundle
30+
cp ../legal/NOTICE-build.md ./sds-antora-ui-bundle/NOTICE.md
31+
cd sds-antora-ui-bundle
32+
zip sds-antora-ui-bundle-${{ github.event.inputs.release_version }}.zip -r *
33+
echo "Done with Zip"
34+
ls
35+
- name: Create GitHub release
36+
uses: softprops/action-gh-release@v1
37+
id: sds_antora_ui_release
38+
with:
39+
body: "Open Manufacturing Platform Default UI bundle for Antora in version v${{ github.event.inputs.release_version }}. Intended for internal use within the OMP."
40+
tag_name: v${{ github.event.inputs.release_version }}
41+
draft: false
42+
prerelease: false
43+
files: build/sds-antora-ui-bundle/sds-antora-ui-bundle-${{ github.event.inputs.release_version }}.zip
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+

0 commit comments

Comments
 (0)