From 5045365437f64d09be2e5b37ad14f671c34d2d7a Mon Sep 17 00:00:00 2001 From: baegteun Date: Thu, 29 Dec 2022 14:52:52 +0900 Subject: [PATCH] :construction_worker: :: Deploy CD --- .github/Deploy_DocC.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/Deploy_DocC.yml diff --git a/.github/Deploy_DocC.yml b/.github/Deploy_DocC.yml new file mode 100644 index 0000000..25a79c9 --- /dev/null +++ b/.github/Deploy_DocC.yml @@ -0,0 +1,36 @@ +name: Deploy DocC to Github Pages + +on: + push: + branches: + - master + +jobs: + hosting: + runs-on: macos-12 + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '14.0' + - name: config git + run: | + git config --global user.name 'MSG-Github' + git config --global user.email 'matsougeum@gmail.com' + git config pull.rebase false + git checkout -t origin/Deploy_DocC + git pull origin Deploy_DocC + git merge master + - name: Archive Docc + run: | + xcodebuild clean docbuild -scheme MSGLayout \ + -destination generic/platform=iOS \ + OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path MSGLayout --output-path docs" + + - name: git commit & push + run: | + git add -A + git commit -m "📝 :: deploy docc" + git push \ No newline at end of file