Skip to content

Commit 645ccfb

Browse files
committed
Add release workflow
1 parent a23834d commit 645ccfb

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
branches:
8+
- main
9+
pull_request:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
build-pfsense-package:
17+
name: Build NetBird Package (FreeBSD)
18+
runs-on: ubuntu-22.04
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Build on FreeBSD
25+
id: build
26+
uses: vmactions/freebsd-vm@v1
27+
with:
28+
usesh: true
29+
copyback: true
30+
release: "15.0"
31+
run: |
32+
set -ex
33+
make
34+
make package
35+
ls -lh work/pkg/
36+
37+
- name: Upload package artifact
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: pfSense-package
41+
path: work/pkg/pfSense-pkg-NetBird-*.pkg
42+
retention-days: 7

0 commit comments

Comments
 (0)