feat: Simulated sensor frequencies are now configurable #259
This file contains hidden or 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
| name: release apk | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Android build | |
| uses: ./.github/actions/android-build-prepare | |
| with: | |
| app-dir: open_wearable | |
| analyze: "true" | |
| - working-directory: open_wearable | |
| run: flutter build apk --release | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: release-apk | |
| path: open_wearable/build/app/outputs/flutter-apk/app-release.apk | |
| if-no-files-found: error | |
| release: | |
| permissions: write-all | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Download APK Artifact | |
| uses: actions/download-artifact@v7 | |
| with: | |
| name: release-apk | |
| path: ${{ github.workspace }}/release-apk | |
| - uses: benjlevesque/short-sha@v2.2 | |
| id: short-sha | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| draft: false | |
| prerelease: false | |
| release_name: Release ${{ github.event.head_commit.message }} | |
| tag_name: ${{ env.SHA }} | |
| - name: Upload APK as Release Asset | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ${{ github.workspace }}/release-apk/app-release.apk | |
| asset_name: app-release.apk | |
| asset_content_type: application/vnd.android.package-archive |