Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release] opam via dune-release #561

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
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
45 changes: 45 additions & 0 deletions .github/workflows/cd-opam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
pull_request:
release:
types:
- created
workflow_dispatch:
inputs:
extra_options:
description: "Arguments to dune-release"
required: true
default: '--dry-run -t TAG -v OPAM_VERSION'

env:
OPTIONS: -v -C language-server --skip-build -p vscoq-language-server --no-auto-open --dry-run

jobs:
publish:
strategy:
matrix:
os: [ubuntu-latest]
ocaml-compiler: [4.14.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Install dune-release
run: opam install dune-release

- name: Set EXTRA_OPTIONS
if: ${{ github.event.inputs.extra_options != '' }}
run: echo "EXTRA_OPTIONS=${{ github.event.inputs.options }}" >> $GITHUB_ENV

- name: Publish
#if: success() && startsWith(github.ref, 'refs/tags/')
run: |
eval $(opam env)
dune-release $OPTIONS $EXTRA_OPTIONS
env:
DUNE_RELEASE_GITHUB_TOKEN: ${{ secrets.DUNE_GH_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
error
on:
release:
types:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
error
on:
push:
branches: [ main ]
Expand Down
Loading