Skip to content

Commit a4e11fc

Browse files
committed
add separate workflow files for publishing sub-packages
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
1 parent 38608b9 commit a4e11fc

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

Diff for: .github/workflows/publish_plotly.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Plotly
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- '[0-9]+.[0-9]+.[0-9]+'
8+
9+
jobs:
10+
create-crates-io-release:
11+
name: Deploy to crates.io
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/rust-toolchain@stable
16+
- run: cargo login ${{ env.CRATES_IO_TOKEN }}
17+
env:
18+
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
19+
- run: cargo publish --allow-dirty -p plotly
20+
21+
create-gh-release:
22+
name: Deploy to GH Releases
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: softprops/action-gh-release@v1

Diff for: .github/workflows/publish_plotly_kaleido.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Plotly Kaleido
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- '[0-9]+.[0-9]+.[0-9]+'
8+
9+
jobs:
10+
create-crates-io-release:
11+
name: Deploy to crates.io
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: dtolnay/rust-toolchain@stable
16+
- run: cargo login ${{ env.CRATES_IO_TOKEN }}
17+
env:
18+
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
19+
- run: cargo publish --allow-dirty -p plotly_kaleido
20+
21+
create-gh-release:
22+
name: Deploy to GH Releases
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)