-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 906 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
name: Deploy Hugo website to Github Pages
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.116.1'
extended: true
- name: Build Site
run: hugo
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
deploy_key: ${{secrets.ACTIONS_DEPLOY_KEY}}
external_repository: DreamOneX/dreamonex.github.io
publish_branch: master
# cname: blog.dreamonex.eu.org
user_name: DreamOneX
user_email: me@dreamonex.eu.org
publish_dir: ./public