-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 894 Bytes
/
deploy.yml
File metadata and controls
34 lines (29 loc) · 894 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
name: Build and Deploy to Second Repo
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive # Crucial for the Blowfish theme
fetch-depth: 0 # Fetch all history for dates/metadata
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.141.0'
extended: true # Required for Blowfish/Tailwind
- name: Build Site
run: hugo --minify
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.DEPLOY_TOKEN }}
publish_dir: ./public
external_repository: That1LinuxGuy/MelodeeDesignSite
publish_branch: main