Skip to content

Commit

Permalink
auto publish new release to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
irevoire committed Sep 20, 2021
1 parent 6a584c5 commit bd80001
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
53 changes: 33 additions & 20 deletions .github/workflows/publish-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, macos-latest]
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-18.04
- os: ubuntu-latest
artifact_name: mieli
asset_name: mieli-linux-amd64
- os: macos-latest
artifact_name: mieli
asset_name: mieli-macos-amd64

steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: stable
- uses: actions/checkout@v2
- name: Build
run: cargo build --release --locked
- name: Compress binaries
uses: svenstaro/upx-action@v2
with:
file: target/release/${{ matrix.artifact_name }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.PUBLISH_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
- uses: hecrj/setup-rust-action@master
with:
rust-version: stable
- uses: actions/checkout@v2
- name: Build
run: cargo build --release --locked
- name: Compress binaries
uses: svenstaro/upx-action@v2
with:
file: target/release/${{ matrix.artifact_name }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.PUBLISH_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}

publish-armv8:
name: Publish for ARMv8
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: uraimo/[email protected]
Expand All @@ -61,3 +61,16 @@ jobs:
file: target/release/mieli
asset_name: mieli-linux-armv8
tag: ${{ github.ref }}

publish-crates-io:
name: Publish on crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CRATES_IO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mieli"
version = "0.1.7"
version = "0.1.8"
edition = "2018"
description = "A cli around Meilisearch"
readme = "README.md"
Expand Down

0 comments on commit bd80001

Please sign in to comment.