Skip to content

Commit 329a0bd

Browse files
updated publish-cli-version workflow
1 parent d05be41 commit 329a0bd

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed
Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
11
name: publish-cli-version
2-
32
on:
43
push:
54
branches: [ main ]
65
tags:
7-
- v[0-9]+.[0-9]+.[0-9]+
6+
- v[0-9]+.[0-9]+.[0-9]+
87

98
jobs:
109
Publish:
1110
runs-on: ubuntu-latest
12-
1311
container:
1412
image: rust:latest
15-
1613
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v3
19-
20-
- name: Install Protoc
21-
run: apt-get update && sudo apt-get install -y protobuf-compiler
22-
23-
- name: test version (dry-run) and metadata checks
24-
working-directory: ./cli
25-
run: cargo publish --dry-run
26-
27-
- name: Publish on crates.io
28-
working-directory: ./cli
29-
run: cargo publish
30-
env:
31-
CARGO_REGISTRY_TOKEN: ${{secrets.CF_TOKEN_CARGO_API}}
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
- name: Install Protoc
17+
run: apt-get update && apt-get install -y protobuf-compiler
18+
- name: test version (dry-run) and metadata checks
19+
working-directory: ./cli
20+
run: cargo publish --dry-run
21+
- name: Publish on crates.io
22+
working-directory: ./cli
23+
run: cargo publish
24+
env:
25+
CARGO_REGISTRY_TOKEN: ${{ secrets.CF_TOKEN_CARGO_API }}

0 commit comments

Comments
 (0)