-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (41 loc) · 1.19 KB
/
release.yml
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
51
52
name: Release
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
release:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v3
- name: setup-git-credentials
uses: de-vri-es/setup-git-credentials@v2
with:
credentials: "https://fiberplanebot:${{ secrets.PRIVATE_GITHUB_TOKEN }}@github.com/"
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: wasm32-unknown-unknown
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --verbose
- name: Compile providers
run: |
cargo xtask build all --exclude=sample
- name: Attach providers to release
uses: meeDamian/[email protected]
with:
allow_override: true
token: ${{ secrets.GITHUB_TOKEN }}
files: providers:artifacts/
- name: Cargo login
uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_TOKEN }}
- name: Publish PDK crates
run: cargo xtask publish