Skip to content

Commit

Permalink
Redone pages CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Owez committed Nov 19, 2022
1 parent 662d52e commit 6980466
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# On every push this script is executed
on: push
name: Build and deploy GH Pages
name: Zola on GitHub Pages

on:
push:
branches:
- master

jobs:
build:
name: Publish site
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: checkout
uses: actions/[email protected]
- name: build_and_deploy
uses: shalzz/[email protected]
env:
# Target branch
PAGES_BRANCH: gh-pages
# Or if publishing to the same repo, use the automatic token
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout master
uses: actions/[email protected]
- name: Build and deploy
uses: shalzz/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6980466

Please sign in to comment.