Skip to content

Commit e3e6dc9

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

File tree

1 file changed

+50
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)