Skip to content

Commit

Permalink
Release workflow
Browse files Browse the repository at this point in the history
This PR adds a release workflow that build an artefact with
dune-release.

The workflow runs only on branch `v*.*.x`.

Should be tested on the branch `v2.5.x`.
  • Loading branch information
Halbaroth committed Sep 18, 2023
1 parent c269efc commit e7548bc
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release

on:
pull_request:
branches:
- 'v*.*.x'

env:
OPAMYES: true

jobs:
dune_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Use OCaml 5.0.0
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.0.0
dune-cache: true

- name: Install dependencies
run: opam exec -- make deps

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

- name: Build the distribution archive
run: opam exec -- dune-release distrib

- name: Upload the artefact
uses: actions/upload-artifact@v3
with:
name: distribution archive
path: _build/alt-ergo-*.tbz

0 comments on commit e7548bc

Please sign in to comment.