-
Notifications
You must be signed in to change notification settings - Fork 0
π :: (#2) CI, CD μΆκ° λ° νμΌ μ΅μ ν, μμ΄μ½ μΆκ° #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
beee804
:fire: :: νλ«νΌ μμ
iloveuhyeon 0b3608e
π· :: CI,CDμΆκ° λ° Template μΆκ°
iloveuhyeon 4a7f170
:bento: :: μ΄λ―Έμ§, ν°νΈ μΆκ°
iloveuhyeon 6a10038
:recycle: :: νμΌ μ μ μ
iloveuhyeon 06052e8
:sparkles: :: Icon μΆκ°
iloveuhyeon d880f28
:spakrles: :: μμ νμΌ μΆκ°
iloveuhyeon e49fc75
:recycle: :: CICD μμ
iloveuhyeon 19cb7f4
:sparkles: :: μμ νμΌ μΆκ°
iloveuhyeon 9c94858
:recycle: :: CICD μμ
iloveuhyeon d57ab4a
Merge branch 'feature/#2-File-Optimization' of https://github.com/Jusβ¦
iloveuhyeon ac30802
:sparkles: :: Changelog μΆκ°
iloveuhyeon 984c452
:page_facing_up: :: Add License
iloveuhyeon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| name: Bug | ||
| about: λ²κ·Έ λ°μ | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## π κ°μ | ||
| - λ²κ·Έλ₯Ό κ°λ¨νκ² μ μ΄μ£ΌμΈμ. | ||
|
|
||
| ## π λ νΌλ°μ€ (λλ μλ‘ μκ² λ λ΄μ©) νΉμ κΆκΈν μ¬νλ€ | ||
| - μ°Έκ³ ν μ¬νμ΄ μλ€λ©΄ μ μ΄μ£ΌμΈμ. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| name: Feature | ||
| about: κΈ°λ₯ μΆκ° | ||
| title: '' | ||
| labels: '' | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| ## π κ°μ | ||
| - ν μΌμ κ°λ¨νκ² μ μ΄μ£ΌμΈμ. | ||
|
|
||
| ## π λ νΌλ°μ€ (λλ μλ‘ μκ² λ λ΄μ©) νΉμ κΆκΈν μ¬νλ€ | ||
| - μ°Έκ³ ν μ¬νμ΄ μλ€λ©΄ μ μ΄μ£ΌμΈμ. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ## π‘ κ°μ | ||
|
|
||
| ## π μμ λ΄μ© | ||
|
|
||
| ## π λ³κ²½μ¬ν | ||
|
|
||
| ## πββοΈ μ§λ¬Έμ¬ν | ||
|
|
||
| ## π΄ μ¬μ©λ°©λ² | ||
|
|
||
| ## πΈ κΈ°ν |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,143 @@ | ||
| name: Jusicool CD | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - published | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| flutter_test: | ||
| name: Run flutter test and analyze | ||
| runs-on: macos-latest | ||
| steps: | ||
|
|
||
| - name: Checkout Flutter repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Java | ||
| uses: actions/setup-java@v3.12.0 | ||
| with: | ||
| distribution: 'oracle' | ||
| java-version: '17' | ||
|
|
||
| - name: Setup Flutter | ||
| uses: subosito/flutter-action@v2 | ||
| with: | ||
| channel: 'stable' | ||
|
|
||
| - name: Checking Flutter Version | ||
| run: flutter --version | ||
|
|
||
|
|
||
| - name: Install Dependencies | ||
| run: flutter pub get | ||
|
|
||
| - name: Analyze project source | ||
| run: flutter analyze | ||
|
|
||
| - name: Build Test IOS | ||
| run: flutter build ios --release --no-codesign | ||
|
|
||
| - name: Publish Design System | ||
| uses: k-paxian/dart-package-publisher@master | ||
| with: | ||
| credentialJson: ${{ secrets.CREDENTIAL_JSON }} | ||
| flutter: true | ||
| skipTests: true | ||
|
|
||
| - name: Set timestamp | ||
| id: timestamp | ||
| run: echo "TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV | ||
|
|
||
| - name: Notify Success for Release | ||
| if: success() | ||
| env: | ||
| TIMESTAMP: ${{ env.TIMESTAMP }} | ||
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
| run: | | ||
| DATA=$(cat <<EOF | ||
| { | ||
| "embeds": [ | ||
| { | ||
| "title": "λ°°ν¬ μ±κ³΅ :)", | ||
| "description": "** Release Version **\n> \`${{ github.event.release.tag_name }}\`\n", | ||
| "color": 46335, | ||
| "timestamp": "${{ env.TIMESTAMP }}", | ||
| "url": "${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}", | ||
| "author": { | ||
| "name": "${{ github.event.sender.login }}", | ||
| "url": "${{ github.event.sender.html_url }}", | ||
| "icon_url": "${{ github.event.sender.avatar_url }}" | ||
| }, | ||
| "thumbnail": { | ||
| "url": "${{ github.event.sender.avatar_url }}" | ||
| }, | ||
| "fields": [ | ||
| { | ||
| "name": "Repository", | ||
| "value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n" | ||
| }, | ||
| { | ||
| "name": "Tag", | ||
| "value": "> [${{ github.event.release.tag_name }}](https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }})", | ||
| "inline": false | ||
| }, | ||
| { | ||
| "name": "Workflow", | ||
| "value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})", | ||
| "inline": false | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| EOF | ||
| ) | ||
| curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}" | ||
|
|
||
| - name: Notify Failure | ||
| if: failure() | ||
| env: | ||
| TIMESTAMP: ${{ env.TIMESTAMP }} | ||
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
| run: | | ||
| DATA=$(cat <<EOF | ||
| { | ||
| "embeds": [ | ||
| { | ||
| "title": "λ°°ν¬ μ€ν¨ :(", | ||
| "description": "** Release Version **\n> \`${{ github.event.release.tag_name }}\`\n", | ||
| "color": 16711680, | ||
| "timestamp": "${{ env.TIMESTAMP }}", | ||
| "url": "${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }}", | ||
| "author": { | ||
| "name": "${{ github.event.sender.login }}", | ||
| "url": "${{ github.event.sender.html_url }}" | ||
| }, | ||
| "thumbnail": { | ||
| "url": "${{ github.event.sender.avatar_url }}" | ||
| }, | ||
| "fields": [ | ||
| { | ||
| "name": "Repository", | ||
| "value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n" | ||
| }, | ||
| { | ||
| "name": "Tag", | ||
| "value": "> [${{ github.event.release.tag_name }}](https://github.com/${{ github.repository }}/releases/tag/${{ github.event.release.tag_name }})", | ||
| "inline": false | ||
| }, | ||
| { | ||
| "name": "Workflow", | ||
| "value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})", | ||
| "inline": false | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| EOF | ||
| ) | ||
| curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,193 @@ | ||
| name: Jusicool CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - develop | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| flutter_test: | ||
| name: Run flutter test and analyze | ||
| runs-on: macos-latest | ||
| steps: | ||
|
|
||
| - name: Checkout Flutter repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Java | ||
| uses: actions/setup-java@v3.12.0 | ||
| with: | ||
| distribution: 'oracle' | ||
| java-version: '17' | ||
|
|
||
| - name: Setup Flutter | ||
| uses: subosito/flutter-action@v2 | ||
| with: | ||
| channel: 'stable' | ||
|
|
||
| - name: Checking Flutter Version | ||
| run: flutter --version | ||
|
|
||
| - name: Install Dependencies | ||
| run: flutter pub get | ||
|
|
||
| - name: Analyze project source | ||
| run: flutter analyze | ||
|
|
||
| - name: Test Package | ||
| run: flutter packages pub publish --dry-run | ||
|
|
||
| - name: Set timestamp | ||
| id: timestamp | ||
| run: echo "TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> $GITHUB_ENV | ||
|
|
||
| - name: Notify Success for Push | ||
| if: github.event_name == 'push' && success() | ||
| env: | ||
| TIMESTAMP: ${{ env.TIMESTAMP }} | ||
| SUCCESS_FLUTTER_IMAGE: ${{ secrets.SUCCESS_FLUTTER_IMAGE }} | ||
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
| run: | | ||
| DATA=$(cat <<EOF | ||
| { | ||
| "content": "<@749992025985777755>, <@1055126447246823518>, <@1075320294446731326>", | ||
| "embeds": [ | ||
| { | ||
| "title": "CI μ±κ³΅ :)", | ||
| "description": "** COMMIT MESSAGE **\n> [${{ github.event.head_commit.message }}](${{ github.event.head_commit.url }})\n", | ||
| "color": 46335, | ||
| "timestamp": "${{ env.TIMESTAMP }}", | ||
| "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", | ||
| "author": { | ||
| "name": "${{ github.event.sender.login }}", | ||
| "url": "${{ github.event.sender.html_url }}", | ||
| "icon_url": "${{ github.event.sender.avatar_url }}" | ||
| }, | ||
| "thumbnail": { | ||
| "url": "${{ github.event.sender.avatar_url }}" | ||
| }, | ||
| "fields": [ | ||
| { | ||
| "name": "Repository", | ||
| "value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n" | ||
| }, | ||
| { | ||
| "name": "Branch", | ||
| "value": "> [${{ github.ref }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }})", | ||
| "inline": false | ||
| }, | ||
| { | ||
| "name": "Workflow", | ||
| "value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})", | ||
| "inline": false | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| EOF | ||
| ) | ||
| curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}" | ||
|
|
||
| - name: Notify Success for PR | ||
| if: github.event_name == 'pull_request' && success() | ||
| env: | ||
| TIMESTAMP: ${{ env.TIMESTAMP }} | ||
| SUCCESS_FLUTTER_IMAGE: ${{ secrets.SUCCESS_FLUTTER_IMAGE }} | ||
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
| run: | | ||
| DATA=$(cat <<EOF | ||
| { | ||
| "content": "<@749992025985777755>, <@1055126447246823518>, <@1075320294446731326>", | ||
| "embeds": [ | ||
| { | ||
| "title": "CI μ±κ³΅ :)", | ||
| "description": "** Pull Request **\n> [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})\n", | ||
| "color": 46335, | ||
| "timestamp": "${{ env.TIMESTAMP }}", | ||
| "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", | ||
| "author": { | ||
| "name": "${{ github.event.sender.login }}", | ||
| "url": "${{ github.event.sender.html_url }}" | ||
| }, | ||
| "thumbnail": { | ||
| "url": "${{ github.event.sender.avatar_url }}" | ||
| }, | ||
| "fields": [ | ||
| { | ||
| "name": "Repository", | ||
| "value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n" | ||
| }, | ||
| { | ||
| "name": "Branch", | ||
| "value": "> [${{ github.ref }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }})", | ||
| "inline": false | ||
| }, | ||
| { | ||
| "name": "Workflow", | ||
| "value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})", | ||
| "inline": false | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| EOF | ||
| ) | ||
| curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}" | ||
|
|
||
| - name: Notify Failure | ||
| if: failure() | ||
| env: | ||
| TIMESTAMP: ${{ env.TIMESTAMP }} | ||
| FAIL_FLUTTER_IMAGE: ${{ secrets.FAIL_FLUTTER_IMAGE }} | ||
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
| run: | | ||
| DATA=$(cat <<EOF | ||
| { | ||
| "content": "<@749992025985777755>, <@1055126447246823518>, <@1075320294446731326>", | ||
| "embeds": [ | ||
| { | ||
| "title": "CI μ€ν¨ :(", | ||
| "description": "** ${{ | ||
| github.event_name == 'push' | ||
| && 'COMMIT MESSAGE' || 'Pull Request' }} **\n> [${{ | ||
| github.event_name == 'push' | ||
| && github.event.head_commit.message || | ||
| github.event.pull_request.title }}](${{ | ||
| github.event_name == 'push' | ||
| && github.event.head_commit.url || | ||
| github.event.pull_request.html_url }})\n", | ||
| "color": 16711680, | ||
| "timestamp": "${{ env.TIMESTAMP }}", | ||
| "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}", | ||
| "author": { | ||
| "name": "${{ github.event.sender.login }}", | ||
| "url": "${{ github.event.sender.html_url }}" | ||
| }, | ||
| "thumbnail": { | ||
| "url": "${{ github.event.sender.avatar_url }}" | ||
| }, | ||
| "fields": [ | ||
| { | ||
| "name": "Repository", | ||
| "value": "> [${{ github.repository }}](https://github.com/${{ github.repository }})\n" | ||
| }, | ||
| { | ||
| "name": "Branch", | ||
| "value": "> [${{ github.ref }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }})", | ||
| "inline": false | ||
| }, | ||
| { | ||
| "name": "Workflow", | ||
| "value": "> [CI](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})", | ||
| "inline": false | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| EOF | ||
| ) | ||
| curl -X POST -H 'Content-type:application/json' -d "$DATA" "${{ secrets.DISCORD_WEBHOOK_URL }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # 1.0.0 | ||
| * Published initial version of the package. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is recommended to pin workflow actions to a specific version or tag instead of using the 'master' branch to avoid unexpected issues from upstream changes.