-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 933 Bytes
/
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
name: Check
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
check:
name: Check code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache cargo & target directories
uses: Swatinem/rust-cache@v2
- name: Check
run: make check
- name: Run tests
run: make test
publish:
needs: check
name: Publish crate
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
- name: Push to crate.io
run: |
cd actix-cloud-codegen
cargo publish --no-verify || true
cd -
cd actix-cloud
cargo publish --no-verify || true
cd -
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
draft: true