Skip to content

Commit ea0d5ed

Browse files
authored
Create main.yml
1 parent f985406 commit ea0d5ed

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# On every push this script is executed
2+
on: push
3+
name: Build and deploy GH Pages
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
if: github.ref == 'refs/heads/main'
8+
steps:
9+
- name: checkout
10+
uses: actions/checkout@v4
11+
- name: build_and_deploy
12+
uses: shalzz/zola-deploy-action@master
13+
env:
14+
# Target branch
15+
PAGES_BRANCH: gh-pages
16+
# Provide personal access token
17+
TOKEN: ${{ secrets.TOKEN }}
18+
# Or if publishing to the same repo, use the automatic token
19+
#TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)