Skip to content

Commit

Permalink
Merge pull request #158 from pknu-wap/release
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn authored Mar 18, 2024
2 parents 2561a89 + 2968f7a commit 376b97f
Show file tree
Hide file tree
Showing 477 changed files with 20,333 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.{kt,kts}]
ij_kotlin_allow_trailing_comma=true
ij_kotlin_allow_trailing_comma_on_call_site=true
ktlint_disabled_rules = import-ordering
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Bug report
description: File a bug report
title: '[QA]: '
labels: ['🔎QA🔎']

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! 🙏
- type: textarea
id: what-happened
attributes:
label: 어떤 일이 발생했나요? 🤔
description: 또한, 어떤 결과를 기대했었는지 알려주세요.
placeholder: 예상치 못한 버그가 발생했습니다...
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: 관련된 스크린 샷이나, 버그 발생 조건을 설명해주세요
description: 빠르게 이해할수록 빠른 대응이 가능해요 !
placeholder: 뒤로가기 버튼 10번 클릭시 크래쉬가 발생
- type: checkboxes
id: terms
attributes:
label: 동의 👍
description:
options:
- label: 다른 이슈가 있는지 확인했습니다. ✅
required: true
8 changes: 5 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## 1. 📄 관련된 이슈 및 소개

## 2. 🔥변경된 점
## 2. 🔥 변경된 점

## 3. 📸 스크린샷(선택)
## 3. ✅ 꼭 확인해줬으면 하는 부분

## 4. 💡알게된 혹은 궁금한 사항들
## 4. 📸 스크린샷(선택)

## 5. 💡알게된 혹은 궁금한 사항들
3 changes: 3 additions & 0 deletions .github/workflows/opened-pr-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
distribution: zulu
cache: gradle

- name: add google-services.json
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: add local.properties
run: |
echo api_key=\"${{ secrets.API_KEY }}\" >> ./local.properties
Expand Down
111 changes: 111 additions & 0 deletions .github/workflows/released-app-distribution.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Released-App-Distribution
on:
push:
branches:
- 'release'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
cache: gradle

- name: add google-services.json
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: add local.properties
run: |
echo api_key=\"${{ secrets.API_KEY }}\" >> ./local.properties
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build

- name: Build release APK
run: ./gradlew assembleRelease

- name: Setup build tool version variable
shell: bash
run: |
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
echo Last build tool version is: $BUILD_TOOL_VERSION
- name: Sign APK
id: sign_app
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.KEY_BASE_64_RELEASE }}
alias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: Authenticate to Firebase
uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}

- name: Setup Firebase CLI
run: curl -sL https://firebase.tools | bash

- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1.7.0
with:
appId: ${{secrets.FIREBASE_APP_ID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: WAPP_QA
file: ${{steps.sign_app.outputs.signedReleaseFile}}

- name: Send Success Message
if: ${{ success() }}
uses: Ilshidur/action-discord@0.3.2
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_USERNAME: WAPP_BOT
DISCORD_AVATAR: https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true
DISCORD_EMBEDS: |
[
{
"author": {
"name": "WAPP Release",
"url": "https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true",
"icon_url": "https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true"
},
"title": "릴리즈 성공, 자 두 과 자 ~ 🔥🔥",
"color": 10478271,
"description": "메일에 새로운 릴리즈 앱 배송완료했어요!"
}
]
- name: Send Failure Message
if: ${{ failure() }}
uses: Ilshidur/action-discord@0.3.2
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_USERNAME: WAPP_BOT
DISCORD_AVATAR: https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true
DISCORD_EMBEDS: |
[
{
"author": {
"name": "WAPP Release",
"url": "https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true",
"icon_url": "https://github.com/pknu-wap/WAPP/blob/main/image/icon.png?raw=true"
},
"title": "릴리즈 실패, 누가 이렇게 하래. 😭😭",
"color": 13458524,
"description": "다시 릴리즈 해오세요. 삐빅"
}
]
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
google-services.json
6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 376b97f

Please sign in to comment.