-
-
Notifications
You must be signed in to change notification settings - Fork 659
77 lines (66 loc) · 1.88 KB
/
docs.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Docs
on:
push:
branches:
- dev
jobs:
check:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: docs/package-lock.json
# Build
- name: Build
working-directory: docs
run: |
npm install
node_modules/.bin/githubcontrib --repo akhq --owner tchiotludo --format html --sortOrder desc > .vuepress/public/contributors.html
npm run build
echo "akhq.io" > .vuepress/dist/CNAME
# Copy for helm
- name: Add some files
run: |
cp LICENSE helm/akhq/LICENSE
cp README.md helm/akhq/README.md
# Helm charts
- uses: J12934/helm-gh-pages-action@master
with:
access-token: ${{ secrets.GITHUB_PERSONAL_TOKEN }}
charts-folder: "helm"
deploy-branch: helm
# Clone helm charts
- name: Clone helm charts
uses: actions/checkout@v4
with:
ref: helm
path: tmp-helm
# Add helm charts
- name: Add helm charts
run: |
rm -rf tmp-helm/.git
cp -R tmp-helm/* docs/.vuepress/dist/
# Deploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_PERSONAL_TOKEN }}
publish_dir: docs/.vuepress/dist/
# Slack
- name: Slack notification
uses: 8398a7/action-slack@v3
if: always()
with:
status: ${{ job.status }}
username: Github Actions
icon_emoji: ':github-actions:'
channel: 'C03H9CEBGS2'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}