Skip to content

Commit

Permalink
👷 :: Github Pages Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
baekteun committed Feb 13, 2023
1 parent 5a199a5 commit 5b68ecc
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Github Pages

on:
push:
branches:
- "master"

jobs:
deploy:
runs-on: macos-12
strategy:
matrix:
swift: ["5.7"]
steps:
- uses: actions/checkout@v2

- name: Setup Webber
run: brew install swifweb/tap/webber

- name: Release Webber
run: webber release

- name: Config Git
run: |
git config --global user.name 'baekteun'
git config --global user.email '[email protected]'
git config pull.rebase false
git checkout -t origin/gh-pages
git pull origin gh-pages
git merge master
- name: Remove Prev Web
run: |
rm -rf ./docs
- name: Result move to docs
run: |
mv .webber/release/ .
mv release docs
- name: git commit & push
run: |
git add -A
git commit -m ":rocket: :: github pages deploy"
git push

0 comments on commit 5b68ecc

Please sign in to comment.