Skip to content

Commit 99b169f

Browse files
committed
Run dune-release-action in ci
1 parent 2a5d6c4 commit 99b169f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/opam-ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: opam CI
22

33
on:
44
pull_request:
5+
tags:
6+
- '*'
57
push:
68
branches:
79
- master
@@ -67,6 +69,18 @@ jobs:
6769
- name: Test
6870
run: opam exec -- dune runtest -p reason,rtop
6971

72+
- name: Install dune-release
73+
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == 'ocaml-base-compiler.5.4.0'
74+
run: opam install dune-release -y
75+
76+
- name: Release to opam
77+
uses: davesnx/[email protected]
78+
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest' && matrix.ocaml-compiler == 'ocaml-base-compiler.5.4.0'
79+
with:
80+
packages: 'reason,rtop'
81+
changelog: './CHANGES.md'
82+
github-token: ${{ secrets.GH_TOKEN }}
83+
7084
- name: Save cache when not Windows
7185
uses: actions/cache/save@v4
7286
if: steps.opam-cache.outputs.cache-hit != 'true' && runner.os != 'Windows'

0 commit comments

Comments
 (0)