Skip to content

install theme deps in build workflow #9

install theme deps in build workflow

install theme deps in build workflow #9

Workflow file for this run

name: Build
on:
push:
branches: [main]
tags:
- "v*.*.*"
permissions:
contents: write
concurrency:
group: "build"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
- name: Install Builder Dependencies
run: cd builder && npm clean-install
- name: Install Theme Dependencies
run: cd theme && npm clean-install
- name: Compile to HTML and PDF
run: node builder/builder.js
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
path: dist
gist:
needs: build
runs-on: ubuntu-latest
steps:
- name: Get Artifact
uses: actions/download-artifact@v4
- name: Update Gist
uses: exuanbo/actions-deploy-gist@v1
with:
token: ${{ secrets.GIST_TOKEN }}
gist_id: cadd0d13339210fde3095c195a47a602
file_path: artifact/resume.json
release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Get Artifact
uses: actions/download-artifact@v4
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: artifact/*