Skip to content

Commit

Permalink
feat(workflow): add aurelia 2 build steps
Browse files Browse the repository at this point in the history
Added new steps to clean and build the Aurelia 2 directory. The workflow now installs dependencies, builds the website, and copies the output to the static folder before proceeding with the Hugo build.
  • Loading branch information
Vheissu committed Dec 12, 2024
1 parent 3081cd5 commit cc7de8d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ jobs:
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"

# New steps for Aurelia 2 build
- name: Clean Aurelia 2 directory
run: |
rm -rf public/aurelia2
rm -rf static/aurelia2
- name: Build Aurelia 2 website
run: |
cd aurelia2
npm install
npm run build
mkdir -p ../static/aurelia2
cp -r dist/* ../static/aurelia2/
# Continue with Hugo build
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
Expand Down

0 comments on commit cc7de8d

Please sign in to comment.