Skip to content

Commit

Permalink
fix CD
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Sep 4, 2023
1 parent 3bef604 commit fd50dd2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ jobs:
generate_release_notes: true
name: Coq-Elpi ${{ github.ref }} for Coq XXX

- name: Use OCaml 4.14.x
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: 4.14.x
opam-local-packages: |
!coq-elpi.opam
- name: Write PAT
env:
OPAM_PUBLISH_TOKEN: ${{ secrets.OPAM_PUBLISH_TOKEN }}
Expand All @@ -74,13 +81,6 @@ jobs:
with:
ssh-private-key: ${{ secrets.BOT_SSH_KEY }}

- name: Use OCaml 4.14.x
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: 4.14.x
opam-local-packages: |
!coq-elpi.opam
- name: Install opam-publish # 2.0.3 because more recent versions do not respect OPAMYES
run: opam install -y -j 2 opam-publish=2.0.3

Expand All @@ -89,5 +89,6 @@ jobs:
eval $(opam env)
git config --global user.name coqelpibot
git config --global user.email [email protected]
echo | make -f Makefile.release
OPAM_SUITE=released
TAG=`shell git tag --sort=-v:refname|head -1`
opam-publish --tag=$TAG --packages-directory=$OPAM_SUITE/packages --repo=coq/opam --no-browser -v ${TAG##v} https://github.com/LPCIC/coq-elpi/releases/download/$TAG/coq-elpi-${TAG##v}.tar.gz

0 comments on commit fd50dd2

Please sign in to comment.