forked from AppFlowy-IO/AppFlowy
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into android_integration_test
- Loading branch information
Showing
491 changed files
with
10,417 additions
and
4,564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build Bot | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
dispatch_slash_command: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
# get build name from pubspec.yaml | ||
- name: Get build version | ||
working-directory: frontend/appflowy_flutter | ||
id: get_build_name | ||
run: | | ||
echo "fetching version from pubspec.yaml..." | ||
echo "build_name=$(grep 'version: ' pubspec.yaml | awk '{print $2}')" >> $GITHUB_OUTPUT | ||
- uses: peter-evans/slash-command-dispatch@v4 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
commands: build | ||
static-args: | | ||
ref=refs/pull/${{ github.event.issue.number }}/head | ||
build_name=${{ steps.get_build_name.outputs.build_name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: build | ||
|
||
on: | ||
repository_dispatch: | ||
types: [build-command] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: notify appflowy_builder | ||
run: | | ||
platform=${{ github.event.client_payload.slash_command.args.unnamed.arg1 }} | ||
build_name=${{ github.event.client_payload.slash_command.args.named.build_name }} | ||
branch=${{ github.event.client_payload.slash_command.args.named.ref }} | ||
build_type="" | ||
arch="" | ||
if [ "$platform" = "android" ]; then | ||
build_type="apk" | ||
elif [ "$platform" = "macos" ]; then | ||
arch="universal" | ||
fi | ||
params=$(jq -n \ | ||
--arg ref "main" \ | ||
--arg repo "LucasXu0/AppFlowy" \ | ||
--arg branch "$branch" \ | ||
--arg build_name "$build_name" \ | ||
--arg build_type "$build_type" \ | ||
--arg arch "$arch" \ | ||
'{ref: $ref, inputs: {repo: $repo, branch: $branch, build_name: $build_name, build_type: $build_type, arch: $arch}} | del(.inputs | .. | select(. == ""))') | ||
echo "params: $params" | ||
curl -L \ | ||
-X POST \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer ${{ secrets.TOKEN }}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/AppFlowy-IO/AppFlowy-Builder/actions/workflows/$platform.yaml/dispatches \ | ||
-d "$params" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.