mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Update release process for stable releases
This commit is contained in:
parent
e9c5928fd3
commit
5dc7d498bd
5 changed files with 227 additions and 54 deletions
14
.github/workflows/README.md
vendored
14
.github/workflows/README.md
vendored
|
@ -1,4 +1,4 @@
|
|||
# GitHub actions workflow for MeiliDB
|
||||
# GitHub Actions Workflow for MeiliSearch
|
||||
|
||||
> **Note:**
|
||||
|
||||
|
@ -6,12 +6,14 @@
|
|||
|
||||
## Workflow
|
||||
|
||||
- On each pull request, we are triggering `cargo test`.
|
||||
- On each tag, we are building:
|
||||
- the tagged docker image
|
||||
- On each pull request, we trigger `cargo test`.
|
||||
- On each tag, we build:
|
||||
- the tagged Docker image and publish it to Docker Hub
|
||||
- the binaries for MacOS, Ubuntu, and Windows
|
||||
- the debian package
|
||||
- On each stable release, we are build the latest docker image.
|
||||
- the Debian package
|
||||
- On each stable release (`v*.*.*` tag):
|
||||
- we build the `latest` Docker image and publish it to Docker Hub
|
||||
- we publish the binary to Hombrew and Gemfury
|
||||
|
||||
## Problems
|
||||
|
||||
|
|
10
.github/workflows/publish-deb-brew-pkg.yml
vendored
10
.github/workflows/publish-deb-brew-pkg.yml
vendored
|
@ -1,9 +1,8 @@
|
|||
name: Publish deb pkg to GitHub release & apt repository & Homebrew
|
||||
name: Publish deb pkg to GitHub release & APT repository & Homebrew
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
debian:
|
||||
|
@ -32,7 +31,8 @@ jobs:
|
|||
name: Bump Homebrew formula
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: mislav/bump-homebrew-formula-action@v1
|
||||
- name: Create PR to Homebrew
|
||||
uses: mislav/bump-homebrew-formula-action@v1
|
||||
with:
|
||||
formula-name: meilisearch
|
||||
env:
|
||||
|
|
11
.github/workflows/publish-docker-latest.yml
vendored
11
.github/workflows/publish-docker-latest.yml
vendored
|
@ -1,8 +1,7 @@
|
|||
---
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
name: Publish latest image to Docker Hub
|
||||
|
||||
|
@ -10,8 +9,12 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check if current release is latest
|
||||
run: echo "##[set-output name=is_latest;]$(sh .github/is-latest-release.sh)"
|
||||
id: release
|
||||
- name: Publish to Registry
|
||||
if: steps.release.outputs.is_latest == 'true'
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
with:
|
||||
name: getmeili/meilisearch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue