-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (40 loc) · 1.04 KB
/
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
name: Deploy Website
on:
push:
branches:
- 'main'
permissions:
contents: read
pages: write
id-token: write
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
#- name: Setup makedeb APT repositories
# uses: makedeb/setup-makedeb@main
# with:
# makedeb-repo: false
# pbmpr-repo: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.119.0'
extended: true
#- name: Install Hugo
# run: sudo apt-get update && sudo apt-get install hugo -y
- name: Build site
run: hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload site artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./public
- name: Deploy site
uses: actions/deploy-pages@v1