Skip to content

Commit 615c203

Browse files
committed
add workflow
1 parent 1a6697c commit 615c203

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

.github/workflows/build.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ qt6_porting ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Repository Dispatch
13+
uses: peter-evans/repository-dispatch@v1
14+
with:
15+
token: ${{ secrets.ACTION_DISPATCH }}
16+
repository: calaos/calaos-build
17+
event-type: build_pkg
18+
client-payload: '{"pkgname": "calaos-home", "commit": "${{ github.sha }}" }'

.github/workflows/build_dev.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build dev package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Package version (x.x.x-dev)'
8+
required: true
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Repository Dispatch
16+
uses: peter-evans/repository-dispatch@v1
17+
with:
18+
token: ${{ secrets.ACTION_DISPATCH }}
19+
repository: calaos/calaos-build
20+
event-type: build_pkg
21+
client-payload: '{"pkgname": "calaos-home", "repo": "calaos-dev", "version": "${{ github.event.inputs.version }}", "commit": "${{ github.sha }}" }'
22+
23+
- name: Create Tag
24+
uses: negz/create-tag@v1
25+
with:
26+
version: ${{ github.event.inputs.version }}
27+
token: ${{ secrets.ACTION_DISPATCH }}

.github/workflows/build_release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build release package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Package version (x.x.x)'
8+
required: true
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Repository Dispatch
16+
uses: peter-evans/repository-dispatch@v1
17+
with:
18+
token: ${{ secrets.ACTION_DISPATCH }}
19+
repository: calaos/calaos-build
20+
event-type: build_pkg
21+
client-payload: '{"pkgname": "calaos-home", "repo": "calaos", "version": "${{ github.event.inputs.version }}", "commit": "${{ github.sha }}" }'
22+
23+
- name: Create Tag
24+
uses: negz/create-tag@v1
25+
with:
26+
version: ${{ github.event.inputs.version }}
27+
token: ${{ secrets.ACTION_DISPATCH }}

0 commit comments

Comments
 (0)