Skip to content

Commit

Permalink
Returned Old One
Browse files Browse the repository at this point in the history
  • Loading branch information
Legendary-Candice-Joe authored Mar 9, 2024
1 parent 35a898e commit fb631b0
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: Build and deploy GH Pages
name: Assorion Website Deploy

env:
ZOLA_VERSION: "0.15.3"
SOURCE_BRANCH: "main"
TARGET_BRANCH: "gh-pages"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
Expand All @@ -12,11 +21,20 @@ jobs:
contents: write
issues: write
steps:
- name: checkout
uses: actions/checkout@v3.0.0
- name: build_and_deploy
uses: shalzz/zola-deploy-action@v0.17.2
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: docs/
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check out repo
uses: actions/checkout@main
- name: Install zola
run: |
set -x
wget -O - \
"https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" \
| sudo tar xzf - -C /usr/local/bin
- name: Generate HTML
run: zola build
- name: Deploy to gh-pages
if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', env.SOURCE_BRANCH) }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
force_orphan: true

0 comments on commit fb631b0

Please sign in to comment.