-
Notifications
You must be signed in to change notification settings - Fork 4
/
codemagic.yaml
26 lines (26 loc) · 6.76 KB
/
codemagic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
workflows:
snapcraft-release:
name: Snapcraft Release
instance_type: linux
triggering:
tag_patterns:
- pattern: '*-test'
include: true
environment:
flutter: master
vars:
# Snapcraft publishing
# 1. Use `snapcraft export-login snapcraft-login-credentials` command to generate your login credentials file
# 2. Encrypt your credentials file in Codemagic App settings UI
# 3. Add credentials in enctypted form to SNAPCRAFT_LOGIN_CREDENTIALS envrionment variable as shown below
SNAPCRAFT_LOGIN_CREDENTIALS: Encrypted(Z0FBQUFBQmdjX3dDcmd5MGhxa19FVjM0RUhRc0xDWjRNQzRnd3hVVW5nZVphRFpWSXdtWVQ2QVdkVFhVVEhEXzFJSXRiclEwMTMzWTQ5VFFqSmhjUEY0X1Q2TzNFV2ZQOGJTTHI5U0V6cE1BQWdsM2xucGw3Z1RQeS1HNHJ6Sk54SXc2NG8tR0VRTTFpRlN5eHpWUW42Q3FTV0xKRThpeU83emwwVE14LWI1VGtjd0dZUDBnbzJ4eGcybVZqdlB0NndHVEJ2ZlpBamc3UmptWjJ5NlBqVy1peVNoVm9vck9Zd3c3YnFucXhHUVNpQkZvRUFybm1XV0F5M0NFMUtaNm5FS0tiSXVuclVfaERVTks2Nmh2cG91MXY2STk2ZFpjVk15LUJXYjZGeExnV2dQbDI5MXdQT04yZk9TLW5SR2N2cmx5RzE5Tm9Md1ZIZW5FV3YtUndKaFNqNEhxSG02SE51RG5DSVNEM3lpNzYwTzY2ZW5CSENVdi1USTlQTGZJRWozeW1YNlo0YXhYekxFVi1HVUU5dUlZVkVTRjg1cUNDSFpTZHJ0RkJrZEtwb1l3RVlraU1hVTFUWG9HLWxwQmhvX2pRcVJnRHZpNG93U2dvZ0pIa3M4TzQtTDh3Y2Fza1dNSjBUeWI1ODJ6OFVJeTJqU1RLbVdUY2FQRGxXdEJXZ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pPZ2lxRnlsQ2E5TUlpenNoYlh5TVoxY1VkdFlQbzREcW51RkI0WjdwM3J2NHdaaUVCS1RfNjRPTlhlS0pIbFppbkFLNC1SVHE3eFpOeGhDV0lFYW1sY1JCMmN1XzRYRy0yQTBVQXVSS2Y1MzMzaFpxMG9hdmgxbGkwbVB2ZmhkTjlHbG9QNi01aGdKdkFJcjhVQTdDMUNmLURTczhXTG90cTZJRTdrZ3JaNENWcS10NWtiLVlGZmcyWVJ1RTd4YmJSOG5fUnk0RkhjbEwyTldSQ2F1X3BIQURNcXI5Q1BjY0ZRUlFEMzNRNERzNDdudEdseTRORnl3cnJSMVNjeEkzLUpSSmY0MVhzV19MMEpNR0NqUUgxX0dGOGVfcENVY045cThOWTVvWTJtUkVnVjJKc2ZHUGlfWUhycEdlLTFTYTRPV1pfanloVG11NXVfeVhXb3dXRG9XOXpPR1ZFby1vaFRjaV8tRmxFSGtra3lHT2dpOGJKalZuYWxMSmR4TEx2RWRLNEx0OHd5NThSbFBzcWtyQndTMzRUUjlENWtDVTlEV0F5bnF4c2tuZ1FsZFhCaS04WktzXzQ4S2NEdHdEd0RhbUZnY19kbG1Zb1lrVlQ4Wm1raTFaU3hYaGp2Y093dWpwSzdGSnVoSTdhSkZJRWtqb3ZwZmRGZEpHMmkxSDhhaHZ3bTd2OUs4WDRjbWRlWHcxZzAwOFdhMDZtUE5IOUJBbHdKM1ZKLXRrWUZhLTRWZjU3dmpzMmRobl9nTVk0bkgtNEhKekkzLUlfU1RneWlQV0prYV91WHRVQ2I3VjV4dDh6SFExckRzUUNSZVl5UFpVN1BqRk1UOTFicWdvdXc0YUdzXzZNN3UzVmhOQ0I4SVhZSlRkUjVXZE04UF80Y2cwT3hfNm4=)
SNAPCRAFT_BUILD_ENVIRONMENT: host
scripts:
- name: Authenticate
script: |
echo $SNAPCRAFT_LOGIN_CREDENTIALS | base64 --decode > /home/builder/snapcraft-login-credentials
snapcraft login --with /home/builder/snapcraft-login-credentials
- name: Create a snap
script: snapcraft snap --output flutter-codemagic-example.snap
- name: Upload and release
script: snapcraft upload flutter-codemagic-example.snap --release stable