feature/ci-deploy #1
@ -13,14 +13,12 @@ jobs:
|
||||
- uses: https://github.com/actions/setup-java@v1
|
||||
with:
|
||||
java-version: '12.x'
|
||||
- uses: https://github.com/subosito/flutter-action@v1
|
||||
- uses: https://github.com/subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: '1.7.8+hotfix.4'
|
||||
channel: stable
|
||||
flutter-version: 3.19.0
|
||||
- run: flutter pub get
|
||||
# - run: flutter test
|
||||
- run: flutter build apk --debug --split-per-abi
|
||||
- name: Push APK to Releases
|
||||
uses: https://github.com/ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "build/app/outputs/apk/debug/*.apk"
|
||||
token: ${{ secrets.TOKEN }}
|
||||
- name: Build
|
||||
run: flutter build web
|
||||
# dumps onto publish_dir: ./build/web
|
||||
|
20
.gitea/workflows/build-web.yaml
Normal file
20
.gitea/workflows/build-web.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
on: push
|
||||
name: Test, Build and Release web
|
||||
jobs:
|
||||
build:
|
||||
name: Build Web
|
||||
runs-on: k8s
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v1
|
||||
- uses: https://github.com/subosito/flutter-action@v2
|
||||
with:
|
||||
channel: stable
|
||||
flutter-version: 3.19.0
|
||||
- run: flutter pub get
|
||||
# - run: flutter test
|
||||
- run: flutter build apk --debug --split-per-abi
|
||||
- name: Push APK to Releases
|
||||
uses: https://github.com/ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "build/app/outputs/apk/debug/*.apk"
|
||||
token: ${{ secrets.TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user