-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (54 loc) · 1.54 KB
/
test.yml
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
54
env:
GH_TOKEN: "${{ github.token }}"
jobs:
build:
needs: "prepare_release"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Upload rbuild image"
uses: "radxa-repo/rbuild@main"
with:
board: "${{ matrix.boards }}"
flavor: "${{ matrix.flavors }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
release-id: "${{ needs.prepare_release.outputs.release_id }}"
suite: "${{ matrix.suites }}"
test-repo: true
timestamp: "t${{ github.run_number }}"
strategy:
matrix:
boards:
- "radxa-cm5-rpi-cm4-io"
flavors:
- "kde"
suites:
- "bullseye"
prepare_release:
outputs:
release_id: "${{ steps.release.outputs.id }}"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Generate rbuild changelog"
uses: "radxa-repo/rbuild-changelog@main"
with:
product: "radxa-cm5-rpi-cm4-io"
- id: "release"
name: "Create empty release"
uses: "softprops/action-gh-release@v2"
with:
body: |
This is a test build for internal development.
Only use when specifically instructed by Radxa support.
draft: false
files: ".changelog/changelog.md"
prerelease: true
tag_name: "test-build-${{ github.run_number }}"
target_commitish: "main"
token: "${{ secrets.GITHUB_TOKEN }}"
name: "Build image for Test channel"
"on":
workflow_dispatch: {}