From 33a09ffa1ba94533bc100c8dc827e766dd972ee4 Mon Sep 17 00:00:00 2001 From: Pierre Villemot Date: Tue, 19 Sep 2023 10:49:45 +0200 Subject: [PATCH] Replace make_release by the Release workflow --- .github/workflows/build.yml | 24 ------------------------ .github/workflows/release.yml | 7 ++++--- 2 files changed, 4 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ccdd41270..79e969ffc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,27 +79,3 @@ jobs: uses: getsentry/action-git-diff-suggestions@main with: message: 'The following changes have been made after `make`:' - - make_release: - name: Make package release - runs-on: ubuntu-latest - - if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - persist-credentials: false - - - name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }} - uses: ocaml/setup-ocaml@v2 - with: - ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }} - dune-cache: true - - - name: Install dependencies - run: opam exec -- make deps - - - name: Run make install - run: opam exec -- make install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca59c3cb02..066dfa0ae5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,12 @@ name: Release on: - pull_request: + push: branches: - 'v*.*.x' env: + OCAML_DEFAULT_VERSION: 5.0.0 OPAMYES: true jobs: @@ -17,10 +18,10 @@ jobs: with: persist-credentials: false - - name: Use OCaml 5.0.0 + - name: Use OCaml ${{ env.OCAML_DEFAULT_VERSION }} uses: ocaml/setup-ocaml@v2 with: - ocaml-compiler: 5.0.0 + ocaml-compiler: ${{ env.OCAML_DEFAULT_VERSION }} dune-cache: true - name: Install dependencies