-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (36 loc) · 1.01 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
name: Release
on:
push:
branches:
- main
- "v[0-9]+.[0-9]+"
tags:
- "v*"
env:
RUST_VERSION: 1.73
jobs:
crates:
name: Publish to crates.io
runs-on: ubuntu-latest
if: |
startsWith(github.ref, 'refs/tags/v') &&
github.repository_owner == 'fermyon'
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
shell: bash
run: |
rustup toolchain install ${{ env.RUST_VERSION }}
rustup default ${{ env.RUST_VERSION }}
- name: Publish spin-executor to crates.io
working-directory: ./crates/executor
run: |
cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish spin-macro to crates.io
working-directory: ./crates/macro
run: |
cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish spin-sdk to crates.io
working-directory: ./
run: |
cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}