Skip to content

Commit

Permalink
GitHub workflow to publish macros crate (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: itowlson <[email protected]>
  • Loading branch information
itowlson authored Feb 16, 2024
1 parent 593aad3 commit c85ec5c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

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 crate publish
run: cargo publish --dry-run -p leptos-spin-macro

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 crate
run: cargo publish -p leptos-spin-macro

0 comments on commit c85ec5c

Please sign in to comment.