Compare commits

...

10 Commits

Author SHA1 Message Date
Ian VanSchooten 7eff4d9a57 Fix go cache in gofmt 2024-10-23 11:09:54 -04:00
Ian VanSchooten 150d1ec740 Fix show-progress flag 2024-10-23 10:07:58 -04:00
Ian VanSchooten 403fe7c41e Update upload-artifact 2024-10-22 14:32:45 -04:00
Ian VanSchooten f0c0d4b49e Remove deprecated actions/upload-release-asset 2024-10-22 14:31:28 -04:00
Ian VanSchooten 6da94f1b48 Replace deprecated github release action 2024-10-22 14:31:28 -04:00
Ian VanSchooten 24b46087da Update upload-artifact 2024-10-22 14:31:28 -04:00
Ian VanSchooten e391a9550c Update actions/setup-java 2024-10-22 14:31:28 -04:00
Ian VanSchooten 836d2a45bf Fix go cache 2024-10-22 14:31:28 -04:00
Ian VanSchooten 9cb9018208 Update actions/setup-go 2024-10-22 14:31:28 -04:00
Ian VanSchooten c55c6f141b Update actions/checkout, set progress false 2024-10-22 14:31:28 -04:00
4 changed files with 46 additions and 40 deletions

View File

@ -21,7 +21,9 @@ jobs:
flutter-version: '3.24.1'
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Check formating
run: dart format -l120 lib/ --set-exit-if-changed --suppress-analytics --output none

View File

@ -14,15 +14,16 @@ jobs:
name: Run gofmt
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go 1.22
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
cache-dependency-path: nebula/go.sum
- name: Install goimports
working-directory: nebula

View File

@ -11,12 +11,18 @@ jobs:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go 1.22
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache-dependency-path: nebula/go.sum
- uses: actions/setup-java@v2
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
@ -26,9 +32,6 @@ jobs:
with:
flutter-version: '3.24.1'
- name: Check out code
uses: actions/checkout@v3
- name: Install the appstore connect key material
env:
AC_API_KEY_SECRET_BASE64: ${{ secrets.AC_API_KEY_SECRET_BASE64 }}
@ -95,7 +98,7 @@ jobs:
fi
- name: Collect iOS artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MobileNebula.ipa
path: ios/MobileNebula.ipa
@ -119,7 +122,7 @@ jobs:
fi
- name: Collect Android artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: MobileNebula.aab
path: build/app/outputs/bundle/release/app-release.aab
@ -138,26 +141,20 @@ jobs:
cd android
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
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
name: Release ${{ github.ref }}
draft: true
prerelease: false
- name: Upload release Android app
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
token: ${{ secrets.GITHUB_TOKEN }}
files: build/app/outputs/bundle/release/MobileNebula.aab
- name: Upload release iOS app
uses: actions/upload-release-asset@v1.0.1

View File

@ -12,12 +12,18 @@ jobs:
name: Android
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go 1.22
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache-dependency-path: nebula/go.sum
- uses: actions/setup-java@v2
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
@ -27,9 +33,6 @@ jobs:
with:
flutter-version: '3.24.1'
- name: Check out code
uses: actions/checkout@v3
- name: install dependencies
env:
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
- name: Collect debug apk
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: app-debug.apk
name: MobileNebulaDebug.apk
path: build/app/outputs/apk/debug/app-debug.apk
retention-days: 60
@ -85,19 +88,22 @@ jobs:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false
- name: Set up Go 1.22
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache-dependency-path: nebula/go.sum
- name: Install flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.1'
- name: Check out code
uses: actions/checkout@v3
- name: install dependencies
run: |
go install golang.org/x/mobile/cmd/gomobile@latest