Skip to content

Commit 8677364

Browse files
author
ianjevans
committed
Initial Stargate UI bundle for Antora builds.
1 parent 2843919 commit 8677364

File tree

27,212 files changed

+3636186
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

27,212 files changed

+3636186
-2
lines changed

.github/workflows/main.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: bundle
2+
3+
on: [push]
4+
5+
jobs:
6+
grunt-build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Compile with Grunt
14+
uses: elstudio/actions-js-build/build@v2
15+
with:
16+
args: "bundle"
17+
18+
- name: Upload a Build Artifact
19+
uses: actions/upload-artifact@v2
20+
with:
21+
# Artifact name
22+
name: Stargate UI bundle
23+
# A file, directory or wildcard pattern that describes what to upload
24+
path: build/ui-bundle.zip

.github/workflows/release.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: release
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
# Sequence of patterns matched against refs/tags
10+
tags:
11+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
12+
13+
jobs:
14+
build:
15+
name: Upload Release Asset
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
- name: Compile with Grunt
22+
uses: elstudio/actions-js-build/build@v2
23+
with:
24+
args: "bundle"
25+
26+
- name: Create Release
27+
id: create_release
28+
uses: actions/create-release@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
tag_name: ${{ github.ref }}
33+
release_name: Release ${{ github.ref }}
34+
draft: false
35+
prerelease: false
36+
- name: Upload Release Asset
37+
id: upload-release-asset
38+
uses: actions/upload-release-asset@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
43+
asset_path: build/ui-bundle.zip
44+
asset_name: ui-bundle.zip
45+
asset_content_type: application/zip

0 commit comments

Comments
 (0)