Skip to content

Commit

Permalink
🚀 create zolatogithubpages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo authored Apr 14, 2023
1 parent afdc5fc commit 7a4c153
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/zolatogithubpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# On every push this script is executed
on: push
name: Build and deploy GH Pages
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@v3.0.0
- name: build_and_deploy
uses: shalzz/zola-deploy-action@v0.17.2
env:
# Target branch
PAGES_BRANCH: gh-pages
# Provide personal access token
TOKEN: ${{ secrets.TOKEN }}
# Or if publishing to the same repo, use the automatic token
#TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7a4c153

Please sign in to comment.