Skip to content

Commit

Permalink
Publish workflows for both crates (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
  • Loading branch information
itowlson authored Feb 19, 2024
1 parent 8464c4a commit 481c2f7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release leptos-spin-macro

on:
workflow_dispatch:
Expand All @@ -17,7 +17,7 @@ jobs:
profile: minimal
toolchain: stable

- name: Check crate publish
- name: Check macro crate publish
run: cargo publish --dry-run -p leptos-spin-macro

release:
Expand All @@ -39,5 +39,5 @@ jobs:
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

- name: Publish crate
- name: Publish macro crate
run: cargo publish -p leptos-spin-macro
43 changes: 43 additions & 0 deletions .github/workflows/release-leptos-spin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release leptos-spin

on:
workflow_dispatch:

jobs:
publish-dry-run:
name: "Perform dry run for publish"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Check main crate publish
run: cargo publish --dry-run -p leptos-spin

release:
name: "Publish to crates.io"
needs: publish-dry-run
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Log into Crates.io
run: cargo login ${CRATES_IO_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

- name: Publish main crate
run: cargo publish -p leptos-spin

0 comments on commit 481c2f7

Please sign in to comment.