Repository navigation
87 lines (72 loc) · 2.93 KB
/
Copy pathrelease.yml
File metadata and controls
87 lines (72 loc) · 2.93 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Release
on:
release:
types: [ published ]
defaults:
run:
shell: bash -l {0}
env:
flavour: oss
jobs:
Build:
name: Build
permissions:
statuses: write
pull-requests: write
contents: write
uses: ./.github/workflows/_build.yml
Deploy:
name: Deploy
runs-on: ubuntu-24.04-8cores-public
environment: Publishing
needs: [Build]
timeout-minutes: 30
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up JDK
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
java-version: '17'
distribution: 'temurin'
- name: Building release APK
run: |
openssl aes-256-cbc -K $KEYSTORE_DECRYPT_KEY -iv $KEYSTORE_DECRYPT_IV -in backpack.android.demo.key.enc -out backpack.android.demo.key -d;
./gradlew :app:assemble${{ env.flavour }}Release -PdisablePreDex
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
KEYSTORE_ALIAS_PASSWORD: ${{ secrets.KEYSTORE_ALIAS_PASSWORD }}
MAPS_API_KEY: ${{ secrets.MAPS_API_KEY }}
KEYSTORE_DECRYPT_KEY: ${{ secrets.KEYSTORE_DECRYPT_KEY }}
KEYSTORE_DECRYPT_IV: ${{ secrets.KEYSTORE_DECRYPT_IV }}
- name: Generate component list
run: ./gradlew :backpack-compose:generateComponentList
- name: Upload components list to release
continue-on-error: true
run: gh release upload ${GITHUB_EVENT_RELEASE_TAG_NAME} backpack-compose/build/outputs/compose_components.txt --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
- name: Publish artifacts
run: ./gradlew publish -Pversion=${GITHUB_EVENT_RELEASE_TAG_NAME}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}
- name: Install libsecret for Supernova CLI
run: sudo apt-get update && sudo apt-get install -y libsecret-1-0
- name: Update Supernova docs
run: npx @supernovaio/cli publish-documentation --apiKey=${{ secrets.SUPERNOVA_API_KEY }} --designSystemId=${{ secrets.SUPERNOVA_DESIGN_SYSTEM_ID }}
- name: Publish release to Runway
run: |
set -e
curl -X POST -F "file=@app/build/outputs/apk/oss/release/app-${{ env.flavour }}-release.apk" -H "X-API-KEY:${RUNWAY_API_KEY}" https://upload-api.runway.team/v1/app/${RUNWAY_APP_ID}/bucket/${RUNWAY_BUCKET_ID}/build
env:
RUNWAY_API_KEY: ${{ secrets.RUNWAY_API_KEY }}
RUNWAY_APP_ID: ${{ secrets.RUNWAY_APP_ID }}
RUNWAY_BUCKET_ID: ${{ secrets.RUNWAY_BUCKET_ID }}