-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 956 Bytes
/
Copy pathrelease.yml
File metadata and controls
36 lines (33 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: arduino/setup-protoc@v3
with:
version: "24.x"
- name: cargo test
run: cargo test --locked --all-features
- name: cargo fmt
run: cargo fmt --check
- name: cargo clippy
run: cargo clippy --locked --all-targets --all-features -- -D warnings
- name: cargo package
run: cargo package --locked
- name: Build production image
run: docker build --file Containerfile --tag unirust-release .
- name: cargo publish
run: cargo publish --locked
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: GitHub Release
uses: softprops/action-gh-release@v2