-
Notifications
You must be signed in to change notification settings - Fork 173
47 lines (38 loc) · 1010 Bytes
/
update-github-pages.yml
File metadata and controls
47 lines (38 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: update-github-pages
on:
push:
branches:
- master
jobs:
update-github-pages:
runs-on: macOS-12
env:
GITHUB_PAGES_PATH: .gh-pages
steps:
- name: Use Xcode 14.2
run: |
sudo xcode-select -s /Applications/Xcode_14.2.app/Contents/Developer
- name: Show versions
run: |
sw_vers
xcodebuild -version
swift --version
- name: Checkout default branch
uses: actions/checkout@v2
- name: Checkout gh-pages branch
uses: actions/checkout@v2
with:
ref: gh-pages
path: ${{ env.GITHUB_PAGES_PATH }}
- name: Update GitHub Pages
run: |
make ghpages
- name: Commit changes
run: |
cd ${GITHUB_WORKSPACE}/.gh-pages
git config user.name github-actions
git config user.email github-actions@github.com
git add .
if git commit -m "Update."; then
git push
fi