Skip to content

Update main.yml

Update main.yml #9

Workflow file for this run

on: push
permissions: write-all
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'build'
uses: littleji/zola-deploy-action@master
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# BUILD_ONLY: true
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'build and deploy'
uses: littleji/zola-deploy-action@master
env:
PAGES_BRANCH: master
BUILD_DIR: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: littleji/littleji.github.io
- name: Debug Logs
run: git remote -v && git log --oneline