Skip to content

Commit 0a600b8

Browse files
authored
chore: update github actions (#9)
1 parent ea469dd commit 0a600b8

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

.github/workflows/deploy.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v6
12+
- name: Build and deploy
13+
uses: shalzz/zola-deploy-action@v0.21.0
14+
env:
15+
PAGES_BRANCH: gh-pages
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/pr.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build
2+
on: pull_request
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v6
9+
- name: Build
10+
uses: shalzz/zola-deploy-action@v0.21.0
11+
env:
12+
BUILD_ONLY: true
13+
BUILD_FLAGS: --drafts

0 commit comments

Comments
 (0)