Skip to content

Commit

Permalink
Merge pull request #70 from 42Box/cluster_develop
Browse files Browse the repository at this point in the history
Develop to Main: First Week Release
  • Loading branch information
chanhihi authored Aug 22, 2023
2 parents ae46910 + 68c6573 commit 24cc8dc
Show file tree
Hide file tree
Showing 234 changed files with 4,609 additions and 1,058 deletions.
51 changes: 51 additions & 0 deletions .github/Release-note.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/semantic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Author by chanhihi
# Date 2023.08.09

types: # default: feat | fix | docs | style | refactor | perf | test | build | ci | chore | revert
- feat
- fix
- docs
- style
- refactor
- perf
- test
- build
- ci
- cd
- wip
- chore
- revert
- Develop to Main
- Revert
- Merge
77 changes: 77 additions & 0 deletions .github/workflows/Deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Author by chanhihi
# Date 2023.08.09

name: Deployment

on:
pull_request:
branches:
- cluster-main
- main
types:
- closed

jobs:
build:
name: Deploy on macOS 11 - Archive / Release
runs-on: macos-11
env:
XCODE_VERSION: "12.4.0"
SWIFT_VERSION: "5.3"
XCODE_PROJECT: "Box42.xcodeproj"
XCODE_SCHEME: "Box42"
XCODE_ARCHIVE_PATH: "Box42.xcarchive"
XCODE_ARCHIVE_EXPORT_PATH: "./archive"
XCODE_EXPORT_PATH: "./artifacts"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set Xcode version
run: sudo xcode-select -s '/Applications/Xcode_12.4.0.app/Contents/Developer'

- name: Set SDK version
run: echo 'SDKROOT=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk' >> $GITHUB_ENV

- name: setup-swift
uses: swift-actions/setup-swift@v1
with:
swift-version: 5.3

- name: Archive
run: |
mv Box42/Resources/ExportOptions.plist . &&
xcodebuild archive -project $XCODE_PROJECT -scheme $XCODE_SCHEME -archivePath "$XCODE_ARCHIVE_EXPORT_PATH"/"$XCODE_ARCHIVE_PATH"
# - name: Distribute
# run: |
# mkdir -p artifacts &&
# xcodebuild -exportArchive -archivePath "$XCODE_ARCHIVE_PATH" -exportOptionsPlist ExportOptions.plist -exportPath "$XCODE_EXPORT_PATH"

- name: Tagging
id: tag_version
uses: mathieudutour/[email protected]
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 }}

# Artifact가 Archive 기능으로 사용할 부분
- name: Upload Box42-Archive
uses: actions/upload-artifact@v2
with:
name: Box42-${{ steps.tag_version.outputs.new_tag }}
path: ${{ env.XCODE_ARCHIVE_EXPORT_PATH }}

# Distribute 기능 활성화시 Artifact에서 사용할 부분
# - name: Upload Box42-Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: Box42-${{ steps.tag_version.outputs.new_tag }}
# path: $XCODE_EXPORT_PATH
43 changes: 43 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Author by chanhihi
# Date 2023.08.09

name: Swift Build

on:
push:
branches:
- feat/*
- fix/*
- refactor/*

pull_request:
branches:
- cluster_develop

jobs:
build:
name: Swift 5.3 on macOS 11 - Swift Build Test
runs-on: macos-11
env:
XCODE_VERSION: "12.4.0"
SWIFT_VERSION: "5.3"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set Xcode version
run: sudo xcode-select -s '/Applications/Xcode_12.4.0.app/Contents/Developer'

- name: Set SDK version
run: echo 'SDKROOT=/Applications/Xcode_12.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk' >> $GITHUB_ENV

- name: setup-swift
uses: swift-actions/setup-swift@v1
with:
swift-version: 5.3

- name: Build
run: |
mkdir Sources &&
mv Box42 Sources/Box42 &&
swift build
99 changes: 99 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,101 @@
### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

### Xcode ###

## Xcode 8 and earlier

### Xcode Patch ###
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcodeproj/project.xcworkspace/
!*.xcworkspace/contents.xcworkspacedata
/*.gcno
**/xcshareddata/WorkspaceSettings.xcsettings

.DS_Store
Box42/.DS_Store
.prettierrc
.swift-format
1 change: 1 addition & 0 deletions .tuist-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.22.0
Loading

0 comments on commit 24cc8dc

Please sign in to comment.