Skip to content

Commit

Permalink
👷 :: Deploy CD
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Dec 29, 2022
1 parent 5c545b1 commit 5045365
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/Deploy_DocC.yml
Original file line number Diff line number Diff line change
@@ -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 '[email protected]'
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

0 comments on commit 5045365

Please sign in to comment.