mirror of
https://github.com/house-of-vanity/house-of-vanity.github.io.git
synced 2025-07-07 16:54:06 +00:00
Fix about post
This commit is contained in:
77
.github/workflows/build-and-publish.yaml
vendored
77
.github/workflows/build-and-publish.yaml
vendored
@ -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 }}
|
||||
|
Reference in New Issue
Block a user