Skip to content

Commit

Permalink
github actions try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Crec0 committed Jan 11, 2025
1 parent f46982f commit 20eb99c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,19 @@ jobs:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/bun.lockb') }}

- name: Install Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
working-directory: ./frontend
run: bun i

- name: Add commit sha
working-directory: ./frontend
run: |
git_hash=$(git rev-parse --short "$GITHUB_SHA")
echo "{\"sha\": \"$git_hash\"}" > ./src/lib/assets/sha.json
- name: Install Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
working-directory: ./frontend
run: bun i
- name: Copy rules
run: cp ./data/parsed_rules.json ./frontend/src/lib/assets/rules.json

- name: Build
working-directory: ./frontend
Expand Down

0 comments on commit 20eb99c

Please # to comment.