Skip to content

Commit 28661c0

Browse files
committed
ci: create release
Signed-off-by: Alan Wandke <[email protected]>
1 parent 72e5752 commit 28661c0

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: Create Release
3+
4+
on:
5+
push: # for testing remove this
6+
workflow_dispatch:
7+
8+
permissions:
9+
packages: read
10+
contents: write
11+
12+
jobs:
13+
create-ubuntu-release:
14+
runs-on: ubuntu-24.04
15+
container:
16+
image: ghcr.io/nationalsecurityagency/seabee-build-ubuntu-noble:latest
17+
18+
steps:
19+
- name: Checkout source code
20+
uses: actions/checkout@v4
21+
22+
- name: print debug info
23+
run: |
24+
uname -r
25+
lsb_release -a
26+
27+
- name: Build Ubuntu 24.04 binaries
28+
run: make release
29+
30+
- name: Prepare release artifacts
31+
run: |
32+
mkdir -p artifacts
33+
cp target/release/seabee artifacts/
34+
cp target/release/seabeectl artifacts/
35+
cp install/journald.service artifacts/
36+
37+
- name: Install GitHub CLI
38+
run: |
39+
apt-get update
40+
apt-get install -y gh
41+
42+
- name: Create GitHub draft release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
TAG: ${{ github.ref_name }}
46+
REPO: ${{ github.repository }}
47+
run: |
48+
gh release create "${TAG}" \
49+
--repo "${REPO}" \
50+
--title "Seabee ${TAG} Ubuntu 24.04" \
51+
--draft \
52+
--notes "Release ${TAG} Ubuntu 24.04" \
53+
artifacts/seabee \
54+
artifacts/seabeectl \
55+
artifacts/journald.service

0 commit comments

Comments
 (0)