Skip to content

fix use automatically generated GITHUB_TOKEN #18

fix use automatically generated GITHUB_TOKEN

fix use automatically generated GITHUB_TOKEN #18

Workflow file for this run

name: Build Theme and push to gh-pages
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Build only
uses: shalzz/[email protected]
env:
BUILD_ONLY: true
BUILD_FLAGS: --drafts
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout main
uses: actions/checkout@v4
- name: Build and deploy
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}