Skip to content

Commit

Permalink
Merge pull request #174 from yourssu/feature/chan/ci-cd
Browse files Browse the repository at this point in the history
워크플로 오류 수정
  • Loading branch information
roian6 authored Jan 12, 2023
2 parents 4224905 + f1196fa commit 80da375
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deployDevStoryBook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# 빌드에 필요한 환경변수를 세팅합니다.
- name: Setting env
run: |
echo "BUILD_NUMBER=$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
echo "BUILD_NUMBER=$(($GITHUB_RUN_NUMBER+139))" >> $GITHUB_ENV
echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> $GITHUB_ENV
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> $GITHUB_ENV
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> $GITHUB_ENV
Expand All @@ -47,4 +47,4 @@ jobs:

# 빌드된 apk를 슬랙에 전송합니다.
- name: Upload to Slack
run: curl -F file=@"app/storybook/build/outputs/apk/dev/release/YDS-StoryBook-${{ steps.release_version.outputs.value }}($BUILD_NUMBER)-dev-release.apk" -F "initial_comment=개발중인 YDS StoryBook이 나왔슈~" -F "channels=${{ secrets.SLACK_CHANNEL_ID_ANDROID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" https://slack.com/api/files.upload
run: curl -F file=@"app/storybook/build/outputs/apk/dev/release/YDS-StoryBook-${{ steps.release_version.outputs.versionName }}($BUILD_NUMBER)-dev-release.apk" -F "initial_comment=개발중인 YDS StoryBook이 나왔슈~" -F "channels=${{ secrets.SLACK_CHANNEL_ID_ANDROID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" https://slack.com/api/files.upload
4 changes: 2 additions & 2 deletions .github/workflows/deployGooglePlay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# 빌드에 필요한 환경변수를 세팅합니다.
- name: Setting env
run: |
echo "BUILD_NUMBER=$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
echo "BUILD_NUMBER=$(($GITHUB_RUN_NUMBER+20))" >> $GITHUB_ENV
echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> $GITHUB_ENV
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> $GITHUB_ENV
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> $GITHUB_ENV
Expand Down Expand Up @@ -82,4 +82,4 @@ jobs:

# 슬랙에 완료 메시지를 전송합니다.
- name: Send message to Slack
run: curl -d "text=YDS StoryBook ${{ steps.release_version.outputs.value }} 버전을 ${{ inputs.track }} 트랙에 배포했슈~ https://play.google.com/store/apps/details?id=com.yourssu.storybook" -d "channels=${{ secrets.SLACK_CHANNEL_ID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" -X POST https://slack.com/api/chat.postMessage
run: curl -d "text=YDS StoryBook ${{ steps.release_version.outputs.versionName }} 버전을 ${{ inputs.track }} 트랙에 배포했슈~ https://play.google.com/store/apps/details?id=com.yourssu.storybook" -d "channel=${{ secrets.SLACK_CHANNEL_ID_ANDROID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" -X POST https://slack.com/api/chat.postMessage
2 changes: 1 addition & 1 deletion .github/workflows/deployLibraryYDS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:

# 슬랙에 완료 메시지를 전송합니다.
- name: Send message to Slack
run: curl -d "text=YDS ${{ steps.release_version.outputs.value }} 라이브러리가 등록되었슈~ https://jitpack.io/#yourssu/YDS-Android" -d "channels=${{ secrets.SLACK_CHANNEL_ID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" -X POST https://slack.com/api/chat.postMessage
run: curl -d "text=YDS ${{ steps.release_version.outputs.versionName }} 라이브러리가 등록되었슈~ https://jitpack.io/#yourssu/YDS-Android" -d "channel=${{ secrets.SLACK_CHANNEL_ID }}" -H "Authorization:Bearer ${{ secrets.SLACK_WORKSPACE_TOKEN }}" -X POST https://slack.com/api/chat.postMessage
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
default_platform(:android)

platform :android do
# devRelease 버전의 aab를 빌드 후 내부 테스트 트랙에 배포합니다.
# productionRelease 버전의 aab를 빌드 후 내부 테스트 트랙에 배포합니다.
desc "Submit to internal track"
lane :internal do
gradle(task: 'bundle', flavor: 'Dev', build_type: 'Release', flags: '--no-daemon')
gradle(task: 'bundle', flavor: 'Production', build_type: 'Release', flags: '--no-daemon')
upload_to_play_store(track: 'internal')
end

Expand Down

0 comments on commit 80da375

Please sign in to comment.