Skip to content

Commit cc2396f

Browse files
committed
Test: CD
1 parent ada2bba commit cc2396f

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
actions: write
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- name: Install OCaml
19+
uses: ocaml/setup-ocaml@v3
20+
with:
21+
ocaml-compiler: 5.2.1
22+
dune-cache: true
23+
24+
- name: Install opam-publish
25+
run: opam install -y opam-publish=3.0.0
26+
27+
# - uses: webfactory/ssh-agent@v0.8.0
28+
# with:
29+
# ssh-private-key: ${{ secrets.BOT_SSH_KEY }}
30+
#
31+
# - name: Write PAT
32+
# env:
33+
# OPAM_PUBLISH_TOKEN: ${{ secrets.OPAM_PUBLISH_TOKEN }}
34+
# run: |
35+
# mkdir -p ~/.opam/plugins/opam-publish
36+
# printf "$OPAM_PUBLISH_TOKEN" > ~/.opam/plugins/opam-publish/vscoqbot.token
37+
38+
- name: Publish on rocq-released
39+
run: |
40+
TAG="${{ github.ref_name }}"
41+
VERSION="${TAG#v}"
42+
# git config --global user.name vscoqbot
43+
# git config --global user.email vscoqbot@inria.fr
44+
opam publish --no-confirmation --no-browser \
45+
--packages-directory=released/packages --repo rocq-prover/opam \
46+
--token=${{ secrets.GITHUB_TOKEN }} \
47+
--tag $TAG -v $VERSION epfl-systemf/StrictOrderSolver

0 commit comments

Comments
 (0)