-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.27 KB
/
build.yaml
File metadata and controls
53 lines (45 loc) · 1.27 KB
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
name: Build FreeBSD Container
on:
push:
branches: [main]
paths-ignore: ['*.md', 'LICENSE', '.gitignore']
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-web:
runs-on: ubuntu-latest
steps:
- name: Get latest Bichon tag
id: tag
run: |
BICHON_TAG=$(git ls-remote --tags --sort="v:refname" \
https://github.com/rustmailer/bichon.git | \
grep -v '\^{}' | tail -n1 | sed 's/.*\///')
echo "tag=${BICHON_TAG}" >> $GITHUB_OUTPUT
- name: Checkout rustmailer/bichon
uses: actions/checkout@v4
with:
repository: rustmailer/bichon
ref: ${{ steps.tag.outputs.tag }}
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Build frontend
run: cd web && pnpm install && pnpm run build
- name: Upload web/dist
uses: actions/upload-artifact@v4
with:
name: web-dist
path: web/dist/
build:
needs: build-web
uses: daemonless/dbuild/.github/workflows/daemonless-build.yaml@main
with:
image_name: bichon
pre_artifact_name: web-dist
pre_artifact_path: web/dist/
secrets: inherit