Merge 403fe7c41e
into 9814360613
This commit is contained in:
commit
8f23fe915a
|
@ -21,7 +21,9 @@ jobs:
|
||||||
flutter-version: '3.24.1'
|
flutter-version: '3.24.1'
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
progress: false
|
||||||
|
|
||||||
- name: Check formating
|
- name: Check formating
|
||||||
run: dart format -l120 lib/ --set-exit-if-changed --suppress-analytics --output none
|
run: dart format -l120 lib/ --set-exit-if-changed --suppress-analytics --output none
|
||||||
|
|
|
@ -16,13 +16,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Set up Go 1.22
|
- name: Set up Go 1.22
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22"
|
go-version: "1.22"
|
||||||
id: go
|
id: go
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
progress: false
|
||||||
|
|
||||||
- name: Install goimports
|
- name: Install goimports
|
||||||
working-directory: nebula
|
working-directory: nebula
|
||||||
|
|
|
@ -11,12 +11,18 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
progress: false
|
||||||
|
|
||||||
- name: Set up Go 1.22
|
- name: Set up Go 1.22
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22"
|
go-version: "1.22"
|
||||||
|
cache-dependency-path: nebula/go.sum
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
@ -26,9 +32,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.24.1'
|
flutter-version: '3.24.1'
|
||||||
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install the appstore connect key material
|
- name: Install the appstore connect key material
|
||||||
env:
|
env:
|
||||||
AC_API_KEY_SECRET_BASE64: ${{ secrets.AC_API_KEY_SECRET_BASE64 }}
|
AC_API_KEY_SECRET_BASE64: ${{ secrets.AC_API_KEY_SECRET_BASE64 }}
|
||||||
|
@ -95,7 +98,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Collect iOS artifacts
|
- name: Collect iOS artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: MobileNebula.ipa
|
name: MobileNebula.ipa
|
||||||
path: ios/MobileNebula.ipa
|
path: ios/MobileNebula.ipa
|
||||||
|
@ -119,7 +122,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Collect Android artifacts
|
- name: Collect Android artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: MobileNebula.aab
|
name: MobileNebula.aab
|
||||||
path: build/app/outputs/bundle/release/app-release.aab
|
path: build/app/outputs/bundle/release/app-release.aab
|
||||||
|
@ -138,26 +141,20 @@ jobs:
|
||||||
cd android
|
cd android
|
||||||
fastlane release
|
fastlane release
|
||||||
|
|
||||||
- name: Create Release
|
- name: Rename app bundle
|
||||||
|
run: |
|
||||||
|
mv build/app/outputs/bundle/release/app-release.aab \
|
||||||
|
build/app/outputs/bundle/release/MobileNebula.aab
|
||||||
|
|
||||||
|
- name: Create GitHub Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v2
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
name: Release ${{ github.ref }}
|
||||||
release_name: Release ${{ github.ref }}
|
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Upload release Android app
|
files: build/app/outputs/bundle/release/MobileNebula.aab
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: build/app/outputs/bundle/release/app-release.aab
|
|
||||||
asset_name: MobileNebula.aab
|
|
||||||
asset_content_type: text/plain
|
|
||||||
|
|
||||||
- name: Upload release iOS app
|
- name: Upload release iOS app
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
|
|
|
@ -12,12 +12,18 @@ jobs:
|
||||||
name: Android
|
name: Android
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
progress: false
|
||||||
|
|
||||||
- name: Set up Go 1.22
|
- name: Set up Go 1.22
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22"
|
go-version: "1.22"
|
||||||
|
cache-dependency-path: nebula/go.sum
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
@ -27,9 +33,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.24.1'
|
flutter-version: '3.24.1'
|
||||||
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.MACHINE_USER_PAT }}
|
TOKEN: ${{ secrets.MACHINE_USER_PAT }}
|
||||||
|
@ -74,9 +77,9 @@ jobs:
|
||||||
unzip -p build/app/outputs/apk/debug/app-debug.apks universal.apk > build/app/outputs/apk/debug/app-debug.apk
|
unzip -p build/app/outputs/apk/debug/app-debug.apks universal.apk > build/app/outputs/apk/debug/app-debug.apk
|
||||||
- name: Collect debug apk
|
- name: Collect debug apk
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: app-debug.apk
|
name: MobileNebulaDebug.apk
|
||||||
path: build/app/outputs/apk/debug/app-debug.apk
|
path: build/app/outputs/apk/debug/app-debug.apk
|
||||||
retention-days: 60
|
retention-days: 60
|
||||||
|
|
||||||
|
@ -85,19 +88,22 @@ jobs:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
progress: false
|
||||||
|
|
||||||
- name: Set up Go 1.22
|
- name: Set up Go 1.22
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22"
|
go-version: "1.22"
|
||||||
|
cache-dependency-path: nebula/go.sum
|
||||||
|
|
||||||
- name: Install flutter
|
- name: Install flutter
|
||||||
uses: subosito/flutter-action@v2
|
uses: subosito/flutter-action@v2
|
||||||
with:
|
with:
|
||||||
flutter-version: '3.24.1'
|
flutter-version: '3.24.1'
|
||||||
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: |
|
run: |
|
||||||
go install golang.org/x/mobile/cmd/gomobile@latest
|
go install golang.org/x/mobile/cmd/gomobile@latest
|
||||||
|
|
Loading…
Reference in New Issue