-
Notifications
You must be signed in to change notification settings - Fork 11
75 lines (69 loc) · 1.98 KB
/
pages.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
name: hugo publish
on:
push:
branches:
- master
- latest-release
jobs:
build-deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: true
ref: latest-release
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.69.0'
- name: Build
run: hugo
# run: hugo -t hugo-theme-learn
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
#env:
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
with:
emptyCommits: false
commitMessage: ${{ github.event.head_commit.message }}
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: devsecops-workshop/devsecops-workshop.github.io
publish_branch: master
publish_dir: ./public
build-deploy-dev:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Edit Toml baseurl
uses: sandstromviktor/[email protected]
with:
file: "config.toml"
key: "baseurl"
value: "https://devsecops-workshop.github.io/devsecops-workshop.github.io-dev/"
- name: Edit Toml title
uses: sandstromviktor/[email protected]
with:
file: "config.toml"
key: "title"
value: "DRAFT : DevSecOps Workshop"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.69.0'
- name: Build
run: hugo
# run: hugo -t hugo-theme-learn
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
#env:
# ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
with:
emptyCommits: false
commitMessage: ${{ github.event.head_commit.message }}
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY_DEV }}
external_repository: devsecops-workshop/devsecops-workshop.github.io-dev
publish_branch: master
publish_dir: ./public