Skip to content

Commit bbabab8

Browse files
committed
adding github action
1 parent ad3c94d commit bbabab8

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Deploy to Second Repo
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: recursive # Crucial for the Blowfish theme
16+
fetch-depth: 0 # Fetch all history for dates/metadata
17+
18+
- name: Setup Hugo
19+
uses: peaceiris/actions-hugo@v3
20+
with:
21+
hugo-version: 'latest'
22+
extended: true # Required for Blowfish/Tailwind
23+
24+
- name: Build Site
25+
run: hugo --minify
26+
27+
- name: Deploy
28+
if: github.ref == 'refs/heads/main'
29+
uses: peaceiris/actions-gh-pages@v4
30+
with:
31+
personal_token: ${{ secrets.DEPLOY_TOKEN }}
32+
publish_dir: ./public
33+
external_repository: That1LinuxGuy/MelodeeDesignSite
34+
publish_branch: main

0 commit comments

Comments
 (0)