File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments