Skip to content

Commit 2304833

Browse files
authored
Merge pull request #80 from stockholmux/zola-deployment
Deployment GitHub action for zola version
2 parents b5c2293 + 591683b commit 2304833

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/zola-deploy.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Zola on GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- prod_zola
7+
8+
jobs:
9+
build_and_deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout prod
13+
uses: actions/checkout@v4
14+
with:
15+
ref: prod_zola
16+
path: website
17+
18+
- name: Checkout valkey-doc
19+
uses: actions/checkout@v4
20+
with:
21+
repository: valkey-io/valkey-doc
22+
path: valkey-doc
23+
24+
- name: Checkout valkey
25+
uses: actions/checkout@v4
26+
with:
27+
repository: valkey-io/valkey
28+
path: valkey
29+
30+
- name: Init commands and topics
31+
run: |
32+
cd website
33+
./build/init-topics.sh ../valkey-doc/topics
34+
./build/init-commands.sh ../valkey-doc/commands ../valkey/src/commands
35+
36+
# - name: Build and deploy
37+
# uses: shalzz/[email protected]
38+
# env:
39+
# PAGES_BRANCH: gh-pages
40+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
- name: Build only
42+
uses: shalzz/[email protected]
43+
env:
44+
BUILD_ONLY: true

0 commit comments

Comments
 (0)