-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (32 loc) · 1.01 KB
/
build-packages.yaml
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
name: Build MeshChat Packages
on: push
jobs:
calculate-version:
runs-on: ubuntu-latest
outputs:
build_version: ${{ steps.build-version-slug.outputs.build_version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: build-version-slug
run: |
date=$(date +%Y%m%d)
branch="${GITHUB_REF_NAME}"
commit=$(git rev-parse --short HEAD)
version="${date}-${branch}-${commit}"
echo "build_version=$version" >> $GITHUB_OUTPUT
build-meshchat-package:
needs: calculate-version
uses:
./.github/workflows/workflow-meshchat-package.yaml
with:
build_version: ${{ needs.calculate-version.outputs.build_version }}
build_dir: package/meshchat-ipkg
build-meshchat-api-package:
needs: calculate-version
uses:
./.github/workflows/workflow-meshchat-api-package.yaml
with:
build_version: ${{ needs.calculate-version.outputs.build_version }}
build_dir: package/meshchat-ipkg