Skip to content

Commit

Permalink
[YDS] StoryBook 배포 자동화 파이프라인 구축
Browse files Browse the repository at this point in the history
[YDS] StoryBook 배포 자동화 파이프라인 구축

테스트 시 github release 제외

Credential 파일 오타 수정

테스트 워크플로 삭제
  • Loading branch information
roian6 committed Oct 7, 2022
1 parent ba11f3c commit bd12522
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/deployLibraryYDS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ jobs:
with:
java-version: 11

- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'

- name: Install Bundle
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Generate Credential File for Fastlane
run: |
echo "$PLAY_STORE_CREDENTIALS" > fastlane/play-store-credentials.json.b64
base64 -d -i fastlane/play-store-credentials.json.b64 > fastlane/play-store-credentials.json
env:
PLAY_STORE_CREDENTIALS: ${{ secrets.PLAY_STORE_CREDENTIALS }}

- name: Setting env
run: |
echo "BUILD_NUMBER=$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
Expand All @@ -46,4 +63,10 @@ jobs:
release_name: Release ${{ steps.release_version.outputs.value }}

- name: Upload to Slack
run: curl -F file=@"app/storybook/build/outputs/bundle/productionRelease/YDS-StoryBook-${{ steps.release_version.outputs.value }}($BUILD_NUMBER)-production-release.aab" -F "initial_comment=YDS ${{ steps.release_version.outputs.value }} 라이브러리가 등록되었슈~ https://jitpack.io/#yourssu/YDS-Android aab 파일은 스토어에 업로드 해유~" -F "channels=${{ secrets.SLACK_CHANNEL_ID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" https://slack.com/api/files.upload
run: curl -F file=@"app/storybook/build/outputs/bundle/productionRelease/YDS-StoryBook-${{ steps.release_version.outputs.value }}($BUILD_NUMBER)-production-release.aab" -F "initial_comment=YDS ${{ steps.release_version.outputs.value }} 라이브러리가 등록되었슈~ https://jitpack.io/#yourssu/YDS-Android aab 파일은 스토어에 업로드 했슈~" -F "channels=${{ secrets.SLACK_CHANNEL_ID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" https://slack.com/api/files.upload

- name: Rename aab
run: mv app/storybook/build/outputs/bundle/productionRelease/YDS-StoryBook-${{ steps.release_version.outputs.value }}\($BUILD_NUMBER\)-production-release.aab app/storybook/build/outputs/bundle/productionRelease/app-production-release.aab

- name: Submit a new Internal Build to Play Store
run: bundle exec fastlane internal_release
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
2 changes: 2 additions & 0 deletions fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
json_key_file("fastlane/play-store-credentials.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.yourssu.storybook") # e.g. com.krausefx.app
23 changes: 23 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:android)

platform :android do
desc "Submit a new Internal Build to Play Store"
lane :internal_release do
upload_to_play_store(track: 'internal', aab: 'app/storybook/build/outputs/bundle/productionRelease/app-production-release.aab')
end
end
1 change: 1 addition & 0 deletions fastlane/metadata/android/ko-KR/changelogs/17.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
일부 컴포넌트의 버그 수정
3 changes: 3 additions & 0 deletions fastlane/metadata/android/ko-KR/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
YDS는 숭실대학교 동아리 유어슈에서 사용하는 디자인 시스템입니다. 뷰 컴포넌트 재사용성을 높여 코드 작성에 걸리는 시간을 단축함과 동시에 일관된 디자인 퀄리티를 보장하기 위해 고안됐습니다.
YDS StoryBook 은 디자이너가 스스로 설계한 YDS 컴포넌트가 잘 구현 되었는지 확인하기 위해서, 실제 코드를 기반으로 만들어진 컴포넌트를 상황에 따라 제어할 수 있게 도와주는 역할을 합니다.
이를 통해 보다 다양한 환경에서 동일하게 품질 높은 디자인 시스템을 유지보수 할 수 있도록 도와줍니다.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fastlane/metadata/android/ko-KR/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/android/ko-KR/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
숭실대 동아리 유어슈에서 사용하는 디자인 시스템, YDS를 보다 쉽게 파악할 수 있도록 도와주는 StoryBook Application 입니다
1 change: 1 addition & 0 deletions fastlane/metadata/android/ko-KR/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
YDS StoryBook
Empty file.

0 comments on commit bd12522

Please sign in to comment.