Skip to content

Commit

Permalink
write to COMMIT file
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Aug 27, 2024
1 parent 4164cb3 commit 5e91c72
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Build and test aslp-web

on:
push:
branches: ["main"]
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -21,9 +23,8 @@ jobs:
extra-conf: |
accept-flake-config = true
- run: find . -type f -exec sed -i "s/@aslp_web_commit@/$COMMIT/g" {} \;

- run: nix build .
- run: echo $COMMIT > ./COMMIT && git add COMMIT
- run: nix build -L .

- run: cp -rv result/lib/ocaml/*/site-lib/aslp_web artifact

Expand Down

0 comments on commit 5e91c72

Please sign in to comment.