Fix about post

This commit is contained in:
2023-08-25 13:48:45 +03:00
parent 60a96b10cb
commit b9adde6d23

View File

@ -1,29 +1,30 @@
#name: Zola on GitHub Pages
name: Zola on GitHub Pages
#on:
# push:
# branches: ["zola"]
on:
push:
branches: ["zola"]
#permissions:
# contents: read
# pages: write
# id-token: write
permissions:
contents: read
pages: write
id-token: write
#defaults:
# run:
# shell: bash
defaults:
run:
shell: bash
#jobs:
# build:
# name: Publish site
# runs-on: ubuntu-latest
# steps:
# - name: Checkout zola branch
# uses: actions/checkout@v3.0.0
# - name: Build and deploy
# uses: shalzz/zola-deploy-action@v0.17.2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
name: Publish site
runs-on: ubuntu-latest
steps:
- name: Checkout zola branch
uses: actions/checkout@v3.0.0
- name: Build and deploy
uses: shalzz/zola-deploy-action@v0.17.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAGES_BRANCH: gh-pages
# deploy:
# environment:
@ -37,19 +38,19 @@
# uses: actions/deploy-pages@v2
#
# 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/zola'
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
# Or if publishing to the same repo, use the automatic token
TOKEN: ${{ secrets.GITHUB_TOKEN }}
# on: push
# name: Build and deploy GH Pages
# jobs:
# build:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/zola'
# 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
# # Or if publishing to the same repo, use the automatic token
# TOKEN: ${{ secrets.GITHUB_TOKEN }}