Skip to content

Commit c8d89d1

Browse files
authored
chore(devtool): build devtool artifact and commit to other branch (#461)
1 parent 6d54c25 commit c8d89d1

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.github/workflows/build_devtool.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build ROHD devtool
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
# Top-level default, no permissions
8+
permissions: {}
9+
10+
jobs:
11+
build-devtool:
12+
name: Build Devtools
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
timeout-minutes: 30
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- name: Setup Flutter SDK
22+
uses: flutter-actions/setup-flutter@v2
23+
with:
24+
channel: stable
25+
version: 3.16.9
26+
27+
- name: Run Flutter Test
28+
run: tool/gh_actions/devtool/run_devtool_test.sh
29+
30+
- name: Build Static Web
31+
run: tool/gh_actions/devtool/build_web.sh
32+
33+
- name: Create artifact branch and commit
34+
run: |
35+
git config --global user.name "${GITHUB_ACTOR}"
36+
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
37+
git fetch origin
38+
git checkout -b artifacts
39+
git pull origin main
40+
git add .
41+
git add -f extension/*
42+
git commit -m "Add build artifacts"
43+
44+
- name: Push changes
45+
uses: ad-m/github-push-action@master
46+
with:
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
branch: artifacts
49+
force: true

.github/workflows/general.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,3 @@ jobs:
112112
- name: Build Static Web
113113
run: tool/gh_actions/devtool/build_web.sh
114114

115-

0 commit comments

Comments
 (0)