-
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (34 loc) · 975 Bytes
/
continuous-deployment.yml
File metadata and controls
40 lines (34 loc) · 975 Bytes
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
name: Continuous Deployment
on:
milestone:
types: [closed]
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Hugo 💡
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Hugo Build 🚧
run: |
sed -i 's/example.com/nirgn975.github.io\/devRes/g' exampleSite/config.toml
hugo --source=exampleSite --minify -e production
- name: Create Release 🚀
uses: ridedott/release-me-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release-branches: '["main"]'
- name: Deploy gh-pages 🖥️
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: exampleSite/public
CLEAN: true