-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.14 KB
/
build.yml
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
41
42
43
44
45
46
47
name: CD
on:
push:
branches:
- '*'
tags:
- 'v*.*.*' # Enforce Semantic Versioning
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup CI Environment
uses: yetanalytics/action-setup-env@v2
- name: Build Bundle
run: make bundle
- name: Archive Bundle (Branch Pushes)
if: ${{ startsWith(github.ref, 'refs/heads') }}
uses: actions/upload-artifact@v4
with:
name: lrs-admin-ui-artifact-${{ github.sha }}
path: target/bundle/**
- name: Compress Bundle
if: ${{ startsWith(github.ref, 'refs/tags') }}
run: | # Need to cd so that the zip file doesn't contain the parent dirs
cd target/bundle
zip -r ../../lrs-admin-ui.zip ./
- name: Craft Draft Release (Tag Pushes)
if: ${{ startsWith(github.ref, 'refs/tags') }}
uses: softprops/action-gh-release@v2
with:
# Defaults:
# name: [tag name]
# tag_name: github.ref
body: "## Release Notes\nTODO: Create great release notes!"
draft: true
files: lrs-admin-ui.zip