-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (38 loc) · 987 Bytes
/
build-site.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
41
42
43
44
45
46
name: Build Site
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: npm install
run: |
cd ./site
npm install
- name: Build
run: |
cd ./site
npm run build
- name: Deploy static files to another repo
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'site/public'
destination-github-username: 'audiovideomerger'
destination-repository-name: 'audiovideomerger.github.io'
user-email: [email protected]