Skip to content

Commit 8a54a91

Browse files
committed
Add build & deploy workflow
1 parent a1333db commit 8a54a91

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
if: github.ref != 'refs/heads/master'
10+
steps:
11+
- name: 'Checkout'
12+
uses: actions/checkout@master
13+
- name: 'Build only'
14+
uses: shalzz/zola-deploy-action@master
15+
env:
16+
BUILD_DIR: .
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
BUILD_ONLY: true
19+
build_and_deploy:
20+
runs-on: ubuntu-latest
21+
if: github.ref == 'refs/heads/main'
22+
steps:
23+
- name: 'Checkout'
24+
uses: actions/checkout@master
25+
- name: 'Build and deploy'
26+
uses: shalzz/zola-deploy-action@master
27+
env:
28+
PAGES_BRANCH: gh-pages
29+
BUILD_DIR: .
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.nojekyll

Whitespace-only changes.

0 commit comments

Comments
 (0)