liuyuqi-dellpc 2 years ago
commit
189778d451

+ 14 - 0
README.md

@@ -0,0 +1,14 @@
+## github-actions
+
+### 前言
+
+github action 可以替代 ci/cd 持续集成,比国内各平台基于 Gitlab/Jenkins 要好多了,配置简单。国内 coding.net 良心私有项目可以用之替代github 。
+
+GitHub action 基于 yaml 语法,超级简单,但是 github steps 构建每个步骤不同,有一些action概念,关键词。本项目将基于自身项目架构经验,做一个模板文件,小修改即可立马使用。
+
+### 详情
+
+
+
+
+

+ 0 - 0
android/.github/workflows/main.yml


+ 0 - 0
docker/.github/workflows/main.yml


+ 28 - 0
flutter/.github/workflows/main.yml

@@ -0,0 +1,28 @@
+name: CI
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Java JDK
+        uses: actions/setup-java@v1.3.0
+        with:
+          java-version: "12.x"
+      - name: Flutter action
+        uses: subosito/flutter-action@v1.1.1
+        with:
+          channel: "stable"
+          flutter-version: "1.12.x"
+      - run: flutter pub get
+      - run: flutter build apk --release
+      - run: pwd
+      - name: artifact
+        uses: actions/upload-artifact@v1
+        with:
+          name: chat-app-ui
+          path: /home/runner/work/chat-app-ui/chat-app-ui/build/app/outputs

+ 0 - 0
go/.github/workflows/main.yml


+ 0 - 0
nodejs/.github/workflows/main.yml


+ 0 - 0
php/.github/workflows/main.yml


+ 0 - 0
python/.github/workflows/main.yml


+ 0 - 0
react/.github/workflows/main.yml


+ 0 - 0
vue/.github/workflows/main.yml