-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 887 Bytes
/
deploy.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
name: CI/CD
on:
push:
branches: [ master ]
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Hugo setup
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.119.0'
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: RobFaie/robfaie.github.io
publish_branch: master
publish_dir: ./public
force_orphan: true
cname: rob-mc.cloud
- name: notification
if: cancelled() == false
uses: xinthink/[email protected]
with:
botToken: ${{ secrets.BotToken }}
chatId: ${{ secrets.ChatID }}
jobStatus: ${{ job.status }}
skipSuccess: false