Skip to content

Commit

Permalink
add separate workflow files for publishing sub-packages
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Gherghescu <[email protected]>
  • Loading branch information
andrei-ng committed Jan 2, 2025
1 parent 38608b9 commit a4e11fc
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish_plotly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy Plotly

on:
workflow_dispatch:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
create-crates-io-release:
name: Deploy to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo login ${{ env.CRATES_IO_TOKEN }}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish --allow-dirty -p plotly

create-gh-release:
name: Deploy to GH Releases
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v1
25 changes: 25 additions & 0 deletions .github/workflows/publish_plotly_kaleido.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy Plotly Kaleido

on:
workflow_dispatch:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
create-crates-io-release:
name: Deploy to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo login ${{ env.CRATES_IO_TOKEN }}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish --allow-dirty -p plotly_kaleido

create-gh-release:
name: Deploy to GH Releases
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v1

0 comments on commit a4e11fc

Please sign in to comment.