mirror of
https://github.com/house-of-vanity/house-of-vanity.github.io.git
synced 2025-08-21 15:07:16 +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:
|
on:
|
||||||
# push:
|
push:
|
||||||
# branches: ["zola"]
|
branches: ["zola"]
|
||||||
|
|
||||||
#permissions:
|
permissions:
|
||||||
# contents: read
|
contents: read
|
||||||
# pages: write
|
pages: write
|
||||||
# id-token: write
|
id-token: write
|
||||||
|
|
||||||
#defaults:
|
defaults:
|
||||||
# run:
|
run:
|
||||||
# shell: bash
|
shell: bash
|
||||||
|
|
||||||
#jobs:
|
jobs:
|
||||||
# build:
|
build:
|
||||||
# name: Publish site
|
name: Publish site
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout zola branch
|
- name: Checkout zola branch
|
||||||
# uses: actions/checkout@v3.0.0
|
uses: actions/checkout@v3.0.0
|
||||||
# - name: Build and deploy
|
- name: Build and deploy
|
||||||
# uses: shalzz/zola-deploy-action@v0.17.2
|
uses: shalzz/zola-deploy-action@v0.17.2
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
PAGES_BRANCH: gh-pages
|
||||||
|
|
||||||
# deploy:
|
# deploy:
|
||||||
# environment:
|
# environment:
|
||||||
@@ -37,19 +38,19 @@
|
|||||||
# uses: actions/deploy-pages@v2
|
# uses: actions/deploy-pages@v2
|
||||||
#
|
#
|
||||||
# On every push this script is executed
|
# On every push this script is executed
|
||||||
on: push
|
# on: push
|
||||||
name: Build and deploy GH Pages
|
# name: Build and deploy GH Pages
|
||||||
jobs:
|
# jobs:
|
||||||
build:
|
# build:
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/zola'
|
# if: github.ref == 'refs/heads/zola'
|
||||||
steps:
|
# steps:
|
||||||
- name: checkout
|
# - name: checkout
|
||||||
uses: actions/checkout@v3.0.0
|
# uses: actions/checkout@v3.0.0
|
||||||
- name: build_and_deploy
|
# - name: build_and_deploy
|
||||||
uses: shalzz/zola-deploy-action@v0.17.2
|
# uses: shalzz/zola-deploy-action@v0.17.2
|
||||||
env:
|
# env:
|
||||||
# Target branch
|
# # Target branch
|
||||||
PAGES_BRANCH: gh-pages
|
# PAGES_BRANCH: gh-pages
|
||||||
# Or if publishing to the same repo, use the automatic token
|
# # Or if publishing to the same repo, use the automatic token
|
||||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user