Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(devtool): build devtool artifact and commit to other branch #461

Merged
merged 23 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build_devtool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build ROHD devtool
on:
push:
branches:
- main

# Top-level default, no permissions
permissions: {}

jobs:
build-devtool:
mkorbel1 marked this conversation as resolved.
Show resolved Hide resolved
name: Build Devtools
permissions:
contents: write
pull-requests: write
timeout-minutes: 30
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v2
with:
channel: stable
version: 3.16.9

- name: Run Flutter Test
run: tool/gh_actions/devtool/run_devtool_test.sh

- name: Build Static Web
run: tool/gh_actions/devtool/build_web.sh

- name: Create artifact branch and commit
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git fetch origin
git checkout -b artifacts
git pull origin main
git add .
git add -f extension/*
git commit -m "Add build artifacts"

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: artifacts
force: true
1 change: 0 additions & 1 deletion .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,3 @@ jobs:
- name: Build Static Web
run: tool/gh_actions/devtool/build_web.sh


Loading