Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ jobs:
git config --global user.email "bot@grain-lang.org"
git config --global user.name "Grain Bot"

# Some hacks to make sure opam doesn't pull the repo in a way we can't deal with
- name: Setup opam repository
run: |
mkdir -p ~/.opam/plugins/opam-publish/repos/
git clone https://github.com/ocaml/opam-repository ~/.opam/plugins/opam-publish/repos/ocaml%opam-repository
cd ~/.opam/plugins/opam-publish/repos/ocaml%opam-repository
git remote add user https://${{ secrets.OPAM_RELEASE }}@github.com/grainbot/opam-repository

# Set up our token because opam doesn't support env var tokens
- name: Setup token
run: |
mkdir -p ~/.opam/plugins/opam-publish/
echo -n ${{ secrets.OPAM_RELEASE }} > ~/.opam/plugins/opam-publish/libbinaryen.token

- name: Generate CHANGES file
env:
CHANGES: ${{ needs.add-archive.outputs.notes }}
Expand All @@ -84,13 +70,15 @@ jobs:
- name: Setup OCaml
uses: ocaml/setup-ocaml@c2e6bb92370612b89f302c3aaefa1da45ee2d702 # v3.2.15
with:
ocaml-compiler: 4.14.0
ocaml-compiler: 5.2.0

- name: Install publish utils
run: |
opam install opam-publish=2.4.0
opam install opam-publish=2.7.0

- name: Publish to opam
env:
OPAM_PUBLISH_GH_TOKEN: ${{ secrets.OPAM_RELEASE }}
run: |
opam publish --no-confirmation --no-browser --msg-file=CHANGES.md ${{ needs.add-archive.outputs.browser_download_url }}

Expand Down