-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.34 KB
/
Copy pathrelease.yaml
File metadata and controls
50 lines (48 loc) · 1.34 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
on:
push:
tags:
- v[0-9]+.*
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: mercury-relayer
target: ${{ matrix.target }}
archive: $bin-$target-$tag
checksum: sha256
token: ${{ secrets.GITHUB_TOKEN }}
include: README.md,LICENSE,docs/why-rewrite.md,docs/architecture.md,docs/ibc-v2.md
publish:
name: Publish to crates.io
runs-on: ubuntu-latest
needs: [release]
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}