Skip to content
Snippets Groups Projects
Select Git revision
  • 0c16d2370965112122f5cd0674c10f38daa7df2a
  • master default protected
  • 58-upgrade-framework-and-dependencies
  • 49-fix-end-game
  • 40-improve-app-metadata
  • 12-improve-layout
  • 4-add-animations
  • Release_0.9.0_46 protected
  • Release_0.8.2_45 protected
  • Release_0.8.1_44 protected
  • Release_0.8.0_43 protected
  • Release_0.7.0_42 protected
  • Release_0.6.0_41 protected
  • Release_0.5.0_40 protected
  • Release_0.4.2_39 protected
  • Release_0.4.1_38 protected
  • Release_0.4.0_37 protected
  • Release_0.3.1_36 protected
  • Release_0.3.0_35 protected
  • Release_0.2.1_34 protected
  • Release_0.2.0_33 protected
  • Release_0.1.2_32 protected
  • Release_0.1.1_31 protected
  • Release_0.1.0_30 protected
  • Release_0.0.29_29 protected
  • Release_0.0.28_28 protected
  • Release_0.0.27_27 protected
27 results

home.dart

Blame
  • .gitlab-ci.yml 1.56 KiB
    image: ghcr.io/cirruslabs/flutter:latest
    
    stages:
      - build-debug
      - release
    
    android:build-debug:
      stage: build-debug
      except:
        - tags
        - master
      script:
        # Check flutter package
        - VERSION_NAME="$(grep '^version:' pubspec.yaml | cut -d' ' -f2)"
        - echo "${VERSION_NAME}"
        - TAG_NAME="${VERSION_NAME}"
        - echo "${TAG_NAME}"
        - >
          if [ $(git tag -l "${TAG_NAME}") ]; then
            echo "Tag ${TAG_NAME} already exists."
            exit 1
          fi
        - flutter clean
        - flutter packages get
        - flutter pub publish --dry-run
      interruptible: true
    
    application:release:
      stage: release
      image:
        name: alpine/git
        entrypoint: [""]
      only:
        - master
      except:
        - tags
      dependencies:
        - android:build-debug
      script:
        - apk --no-cache add curl
        - git config user.email "${GITLAB_USER_EMAIL}"
        - git config user.name "${GITLAB_USER_NAME}"
        - git remote set-url origin https://oauth2:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}
        - VERSION_NAME="$(grep '^version:' pubspec.yaml | cut -d' ' -f2)"
        - echo "${VERSION_NAME}"
        - TAG_NAME="${VERSION_NAME}"
        - echo "${TAG_NAME}"
        - >
          if [ $(git tag -l "${TAG_NAME}") ]; then
            echo "Tag ${TAG_NAME} already exists."
            exit 1
          else
            git tag -a "${TAG_NAME}" -m "Release ${VERSION_NAME}"
            git push origin "${TAG_NAME}"
            curl --silent -d "{\"token\": \"${JABBER_NOTIFICATION_TOKEN}\", \"message\": \"New tag for ${CI_PROJECT_PATH}: ${TAG_NAME}\"}" -H "Content-Type: application/json" -X POST ${JABBER_NOTIFICATION_URL}
          fi