Skip to content

Commit 4acb2ed

Browse files
authored
Update deploy-branches.yml
1 parent 9bb9207 commit 4acb2ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-branches.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@ jobs:
1616
path: source
1717
- name: Add name of current branch to environment as BRANCH_NAME
1818
uses: nelonoel/[email protected]
19-
- name: Clear opam cache
20-
run: rm -rf /home/runner/.opam/
2119
- name: Retrieve build environment if cached # STEP 2
2220
id: opam-cache
2321
uses: actions/cache@v4
2422
with:
2523
path: '/home/runner/.opam/'
2624
key: ${{ runner.os }}-modules-${{ hashFiles('./source/opam.export') }}
25+
- name: Add opam repository archive
26+
run: |
27+
eval $(opam env)
28+
export OPAMYES=1
29+
opam repo add archive git+https://github.com/ocaml/opam-repository-archive
2730
- name: Install dependencies and build tylr # STEP 3
2831
run: |
2932
sudo apt --assume-yes install opam

0 commit comments

Comments
 (0)