Skip to content

Commit 530b9a2

Browse files
committed
Add CI / deploy
1 parent 328c416 commit 530b9a2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)