Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upload to registry workflow for foundry_std #2461

Draft
wants to merge 1 commit into
base: szymczyk/registry
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,27 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ steps.create-release.outputs.computed-prefix }}${{ steps.create-release.outputs.version }}

upload-to-registry:
name: Upload new snforge_std and sncast_std versions to the registry
runs-on: ubuntu-latest
needs: [ create-release, verify-version ]
steps:
- uses: actions/checkout@v4
# todo: Use scarb version from tool-versions
- uses: software-mansion/[email protected]
with:
scarb-version: "2.8.2"
- name: Package and upload snforge_std
working-directory: ./snforge_std
env:
SCARB_REGISTRY_AUTH_TOKEN: ${{ secrets.SCARB_REGISTRY_AUTH_TOKEN }}
run: scarb publish
- name: Package and upload sncast_std
working-directory: ./sncast_std
env:
SCARB_REGISTRY_AUTH_TOKEN: ${{ secrets.SCARB_REGISTRY_AUTH_TOKEN }}
run: scarb publish

deploy-docs:
name: Deploy documentation
needs: [ create-release, verify-version ]
Expand Down
4 changes: 3 additions & 1 deletion snforge_std/Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version = 1

[[package]]
name = "snforge_scarb_plugin"
version = "0.1.0"
version = "0.2.0"
source = "registry+https://scarbs.xyz/"
checksum = "sha256:2e4ce3ebe3f49548bd26908391b5d78537a765d827df0d96c32aeb88941d0d67"

[[package]]
name = "snforge_std"
Expand Down
2 changes: 1 addition & 1 deletion snforge_std/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ repository = "https://github.com/foundry-rs/starknet-foundry"
license-file = "../LICENSE"

[dependencies]
snforge_scarb_plugin = { path = "../crates/snforge-scarb-plugin" }
snforge_scarb_plugin = "0.2.0"
Loading