Skip to content

Commit

Permalink
Publish to creates.io workflow (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: 0xLucqs <[email protected]>
  • Loading branch information
maciejka and 0xLucqs authored Aug 1, 2024
1 parent f98f048 commit ffcf7e6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ jobs:
- name: "Checkout source code"
uses: "actions/checkout@v3"

- name: "Setup stable toolchain"
uses: "actions-rs/toolchain@v1"
with:
toolchain: "stable"
profile: "minimal"
override: true
- uses: actions/checkout@v3
- name: Install toolchain
run: rustup show

- name: "Install cargo-hack"
run: |
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- main
tags:
- '*'
# just for manual testing
workflow_dispatch:

name: Publish

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install toolchain
run: rustup show

- run: cargo publish --dry-run --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ authors = [
"Dan Brownstein <@dan-starkware>",
"Federico Carrone <@unbalancedparentheses>",
"Jonathan Lei <@xJonathanLEI>",
"Maciej Kamiński <@maciejka>",
]
edition = "2021"
repository = "https://github.com/starknet-io/types-rs"

0 comments on commit ffcf7e6

Please sign in to comment.