-
Notifications
You must be signed in to change notification settings - Fork 1
25 lines (24 loc) · 764 Bytes
/
main.yml
File metadata and controls
25 lines (24 loc) · 764 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
# On every push this script is executed
on: push
name: Build and deploy GH Pages
jobs:
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.TOKEN }}
- name: Prebuild
uses: oven-sh/setup-bun@v2
- run: bun install
working-directory: ./themes/tranquil
- run: bun x tailwindcss -i styles/styles.css -o static/styles/styles.css --minify
working-directory: ./themes/tranquil
- name: Build and deploy
uses: shalzz/zola-deploy-action@v0.21.0
env:
PAGES_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.TOKEN }}