Add User Survey for Studienarbeit (#140) #26
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: "Dev Branch Release Build" | |
| on: | |
| push: | |
| branches: [ development ] | |
| workflow_dispatch: | |
| jobs: | |
| build-dev-release: | |
| name: "Build Dev Release APK" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v4 | |
| - name: "Set up Java" | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "oracle" | |
| java-version: "22" | |
| - name: "Set up Gradle" | |
| uses: gradle/actions/setup-gradle@v3 | |
| with: | |
| gradle-version: wrapper | |
| - name: "Set up Flutter" | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| flutter-version-file: pubspec.yaml | |
| cache: true | |
| - name: "Setup Ruby" | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.1' | |
| working-directory: 'android' | |
| bundler-cache: true | |
| - name: Set up keystore | |
| env: | |
| KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | |
| KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | |
| KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
| KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
| run: | | |
| echo "CI=true" >> $GITHUB_ENV | |
| echo "KEYSTORE_BASE64=$KEYSTORE_BASE64" >> $GITHUB_ENV | |
| echo "KEYSTORE_PASSWORD=$KEYSTORE_PASSWORD" >> $GITHUB_ENV | |
| echo "KEY_ALIAS=$KEY_ALIAS" >> $GITHUB_ENV | |
| echo "KEY_PASSWORD=$KEY_PASSWORD" >> $GITHUB_ENV | |
| - name: "Run Fastlane Release Build" | |
| id: fastlane | |
| uses: maierj/fastlane-action@v3.1.0 | |
| with: | |
| lane: build_release | |
| subdirectory: android | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| - name: "Upload Release APK" | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: movetopia-dev-release | |
| path: android/fastlane/build/outputs/movetopia-release.apk | |
| - name: "Create GitHub Pre-Release" | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| generateReleaseNotes: true | |
| prerelease: true | |
| tag: ${{ env.VERSION_NAME }} | |
| name: "Dev: ${{ env.VERSION_NAME }}" | |
| artifacts: "android/fastlane/build/outputs/movetopia-release.apk" |