-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (39 loc) · 1.02 KB
/
Copy pathpublish_post.yaml
File metadata and controls
46 lines (39 loc) · 1.02 KB
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: publish post
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "5 1,5,9,13 * * *"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v7
with:
submodules: true
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version: "latest"
- name: Install dependencies
run: |
uv --version
uv sync --no-dev
- name: Build
run: |
export GOOGLE_ANALYTICS=${{ secrets.GOOGLE_ANALYTICS }}
export UTTERANCES_REPO=${{ github.repository }}
uv run inv build-publish
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./output
user_name: "github-actions[bot]"
user_email: "github-actions[bot]@users.noreply.github.com"