-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (42 loc) · 1.54 KB
/
deploy.yml
File metadata and controls
44 lines (42 loc) · 1.54 KB
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
name: Publish CTM Site
on:
push:
branches:
- dev
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 1 * * *'
jobs:
deploy:
# Skip job based on the commit message
if: contains(toJson(github.event.commits), '[skip ci]') == false
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.110.0'
- name: Update theme
run: git submodule update --init --recursive
- name: Build
run: TZ=Europe/Berlin hugo --minify --buildFuture
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.DEPLOY_TOKEN }}
publish_dir: ./public
publish_branch: publish
user_name: 'diemol-bot'
user_email: 'diemol-bot@users.noreply.github.com'
commit_message: ${{ github.event.head_commit.message }}
cname: www.continuoustestingmeetup.com