mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-25 20:40:24 +00:00
set up crates.io deployment in github actions
This commit is contained in:
parent
9e320135ec
commit
8f202b0f00
1 changed files with 27 additions and 9 deletions
20
.github/workflows/deployment.yaml
vendored
20
.github/workflows/deployment.yaml
vendored
|
@ -2,6 +2,8 @@ name: deployment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
|
|
||||||
|
@ -21,7 +23,7 @@ jobs:
|
||||||
release_name: ${{ github.ref }}
|
release_name: ${{ github.ref }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
build:
|
deploy_binaries:
|
||||||
needs: create_release
|
needs: create_release
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -65,3 +67,19 @@ jobs:
|
||||||
asset_path: himalaya.tar.gz
|
asset_path: himalaya.tar.gz
|
||||||
asset_name: himalaya-${{ matrix.os_name }}.tar.gz
|
asset_name: himalaya-${{ matrix.os_name }}.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
deploy_crate:
|
||||||
|
needs: create_release
|
||||||
|
runs-on: linux
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Install rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: stable
|
||||||
|
- name: Check project
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: check
|
||||||
|
- name: Publish package to crates.io
|
||||||
|
run: cargo publish
|
||||||
|
|
Loading…
Reference in a new issue