Skip to content

Commit

Permalink
Add upload to registry workflow for foundry_std
Browse files Browse the repository at this point in the history
  • Loading branch information
THenry14 committed Sep 11, 2024
1 parent 1e9a5ca commit 6e31415
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
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"

0 comments on commit 6e31415

Please sign in to comment.