From 5c939538e4cd66c71360f6a14a82420107761b4b Mon Sep 17 00:00:00 2001 From: KIM CHAN HEE <85754295+chanhihi@users.noreply.github.com> Date: Sun, 3 Mar 2024 00:32:41 +0900 Subject: [PATCH 1/3] docs: Release-note.yml --- .github/Release-note.yml | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/Release-note.yml diff --git a/.github/Release-note.yml b/.github/Release-note.yml new file mode 100644 index 0000000..e9c7fa8 --- /dev/null +++ b/.github/Release-note.yml @@ -0,0 +1,51 @@ +# Author by chanhihi +# Date 2023.08.09 +# name-template: "v$NEXT_MINOR_VERSION 🦊" +# tag-template: "v$NEXT_MINOR_VERSION" + +name-template: "v$RESOLVED_VERSION 🦊" +tag-template: "v$RESOLVED_VERSION" +version-resolver: + major: + labels: + - "⚠️ Breaking changes" + minor: + labels: + - "✨ Enhancement" + patch: + labels: + - "βš’ Refactor" + - "🐞 Bug" + default: patch + +categories: + - title: "⚠️ Breaking changes" + labels: + - "⚠️ Breaking Change" + - title: "πŸš€ Features" + labels: + - "✨ Enhancement" + - "βš’ Refactor" + - "πŸ› Structure" + - title: "πŸ› Bug Fixes" + labels: + - "🐞 Bug" + - title: "πŸ“š Documentation" + labels: + - "πŸ“„ Documentation" + - title: "🎨 Style" + labels: + - "πŸ’„ UI/UX" + - title: "πŸ— Infrastructure" + labels: + - "🌐 DevOps" +exclude-labels: + - "πŸ’– Question" + - "β˜‚οΈ Umbrella" + +change-template: "- $TITLE (#$NUMBER)" +change-title-escapes: '\<*_&' + +template: | + ## Changes + $CHANGES From d2869ef637f44699ea7fa39cde1e6e9d4317a539 Mon Sep 17 00:00:00 2001 From: KIM CHAN HEE <85754295+chanhihi@users.noreply.github.com> Date: Sun, 3 Mar 2024 01:08:21 +0900 Subject: [PATCH 2/3] docs: add Deployment.yml --- .github/workflows/Deployment.yml | 73 ++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/Deployment.yml diff --git a/.github/workflows/Deployment.yml b/.github/workflows/Deployment.yml new file mode 100644 index 0000000..5caa729 --- /dev/null +++ b/.github/workflows/Deployment.yml @@ -0,0 +1,73 @@ +# Author by chanhihi +# Date 2024.03.03 + +name: Deployment + +on: + pull_request: + branches: + - main + types: + - closed + +jobs: + build: + name: Deploy on macOS 12 - Archive / Release for iOS + runs-on: macos-12 + env: + XCODE_VERSION: "15.2.0" + SWIFT_VERSION: "5.9.2" + XCODE_PROJECT: "iBox.xcodeproj" + XCODE_SCHEME: "iBox" + XCODE_ARCHIVE_PATH: "iBox.xcarchive" + XCODE_ARCHIVE_EXPORT_PATH: "./archive" + XCODE_EXPORT_PATH: "./artifacts" + TUIST_VERSION: "3.36.2" + APP_STORE_CONNECT_KEY: ${{ secrets.APP_STORE_CONNECT_KEY }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set Xcode version + run: sudo xcode-select -s '/Applications/Xcode_15.2.0.app/Contents/Developer' + + - name: Setup Swift + uses: swift-actions/setup-swift@v1 + with: + swift-version: ${{ env.SWIFT_VERSION }} + + - name: Install Tuist + run: curl -Ls https://install.tuist.io | bash + + - name: Generate Xcode project with Tuist + run: tuist generate --version ${{ env.TUIST_VERSION }} + + - name: Archive for iOS (Main App and Share Extension) + run: | + xcodebuild archive -project $XCODE_PROJECT -scheme $XCODE_SCHEME -archivePath "$XCODE_ARCHIVE_EXPORT_PATH"/"$XCODE_ARCHIVE_PATH" -sdk iphoneos BUILD_LIBRARY_FOR_DISTRIBUTION=YES SKIP_INSTALL=NO + # Share Extension에 λŒ€ν•œ λ³„λ„μ˜ μ•„μΉ΄μ΄λΈŒ μ»€λ§¨λ“œκ°€ ν•„μš”ν•˜λ‹€λ©΄ 여기에 μΆ”κ°€ + + - name: Export IPA + run: | + xcodebuild -exportArchive -archivePath "$XCODE_ARCHIVE_EXPORT_PATH"/"$XCODE_ARCHIVE_PATH" -exportOptionsPlist ExportOptions.plist -exportPath "$XCODE_EXPORT_PATH" + + - name: Tagging + id: tag_version + uses: mathieudutour/github-tag-action@v6.1 + with: + github_token: ${{ secrets.CHANHIHI }} + + - name: Draft Release + id: draft_release + uses: release-drafter/release-drafter@v5 + with: + config-name: Release-note.yml + env: + GITHUB_TOKEN: ${{ secrets.CHANHIHI }} + + - name: Upload IPA + uses: actions/upload-artifact@v2 + with: + name: Box42-${{ steps.tag_version.outputs.new_tag }} + path: ${{ env.XCODE_EXPORT_PATH }}/*.ipa From 30e86b91f030d0190ce4b7635152bcb3d9fd9210 Mon Sep 17 00:00:00 2001 From: KIM CHAN HEE <85754295+chanhihi@users.noreply.github.com> Date: Sun, 3 Mar 2024 01:44:09 +0900 Subject: [PATCH 3/3] docs: fix Deployment.yml --- .github/workflows/Deployment.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Deployment.yml b/.github/workflows/Deployment.yml index 5caa729..28f23d7 100644 --- a/.github/workflows/Deployment.yml +++ b/.github/workflows/Deployment.yml @@ -13,7 +13,7 @@ on: jobs: build: name: Deploy on macOS 12 - Archive / Release for iOS - runs-on: macos-12 + runs-on: macos-latest env: XCODE_VERSION: "15.2.0" SWIFT_VERSION: "5.9.2" @@ -38,15 +38,14 @@ jobs: swift-version: ${{ env.SWIFT_VERSION }} - name: Install Tuist - run: curl -Ls https://install.tuist.io | bash + run: sudo curl -Ls https://install.tuist.io | bash - name: Generate Xcode project with Tuist - run: tuist generate --version ${{ env.TUIST_VERSION }} + run: tuist local ${{ env.TUIST_VERSION }} && tuist generate - name: Archive for iOS (Main App and Share Extension) run: | xcodebuild archive -project $XCODE_PROJECT -scheme $XCODE_SCHEME -archivePath "$XCODE_ARCHIVE_EXPORT_PATH"/"$XCODE_ARCHIVE_PATH" -sdk iphoneos BUILD_LIBRARY_FOR_DISTRIBUTION=YES SKIP_INSTALL=NO - # Share Extension에 λŒ€ν•œ λ³„λ„μ˜ μ•„μΉ΄μ΄λΈŒ μ»€λ§¨λ“œκ°€ ν•„μš”ν•˜λ‹€λ©΄ 여기에 μΆ”κ°€ - name: Export IPA run: |