-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.07 KB
/
swift.yml
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
48
49
50
name: Deploy Github Pages
on:
# push:
# branches:
# - source
# schedule:
# - cron: '30 */24 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
gh-pages:
runs-on: ubuntu-latest
container:
image: "swift:5.5"
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache
uses: actions/cache@v3
with:
path: |
.build
.publish
key: ${{ runner.os }}-spm-${{ hashFiles('./Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Build Publish
run: |
git clone https://github.com/JohnSundell/Publish.git
cd Publish
make
- name: Generate Site
run: publish generate
- name: Create CNAME
run: |
cd ./Output
echo "www.abespodcast.com" > CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: master
PUBLISH_DIR: ./Output