This commit is contained in:
Mrrp 2025-01-04 12:20:53 -08:00
parent 6c2bae94d8
commit 2d78426857
11 changed files with 159 additions and 101 deletions

View file

@ -25,34 +25,10 @@ concurrency:
cancel-in-progress: false
jobs:
# Add/update json to branch commit before building
# then upload the artifact to the git repository for storage (permanent)
prepare:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Activate Venv
run: source venv/bin/activate
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install dependencies
run: pip install python-frontmatter && deno install
- name: Update Page list
run: deno --allow-all utils/page_updater/update_pagelist.ts
# - name: Update Page history
# run: python utils/page_updater/commit_post_history.py
# - name: Generate RSS feed
# run: python utils/page_updater/rss_xml_gen.py
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
# Build job
build:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Checkout
uses: actions/checkout@v4
@ -71,6 +47,8 @@ jobs:
${{ runner.os }}-nuxt-build-
- name: Install dependencies
run: deno install
- name: Update Page list
run: deno --allow-all utils/page_updater/update_pagelist.ts
- name: Generate project as a static site
run: deno task generate
- name: Upload artifact