-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (45 loc) · 1.3 KB
/
release.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
48
49
50
51
52
53
54
55
name: Release
##
# Although systems are managed through a CI/CD process, it can be helpful to
# periodically "make a release" (snapshot) of the assets, in order to reduce
# some repetitive strain injury (re-installing deps to rebuild assets).
##
on:
create:
tags:
- v*
jobs:
##
# Release Workflow:
# 1. Pre-Release Checks
# 2. Build "Production" ISO (teckhost.iso)
# 3. Publish Release w/ Artifacts
##
release:
name: Teckhost Release
# Only run for "version" tags
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# 1. Pre-Release Checks
- name: Pre-Release Checks
run: echo "need to create some pre-release checks ..."
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install libarchive-tools syslinux xorriso isolinux coreutils
# 2. Build "Production" ISO (teckhost*.iso)
- name: Build Teckhost ISO
id: build_iso
run: make teckhost.iso
# 3. Publish Release w/ Artifacts
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
bootstrap
teckhost*.iso