From 177666ecc41631fe8b95316f4476b2bb616d9fcd Mon Sep 17 00:00:00 2001 From: Wojciech Szymczyk Date: Wed, 11 Sep 2024 11:35:21 +0200 Subject: [PATCH] Add upload to registry workflow for foundry_std --- .github/workflows/release.yml | 21 +++++++++++++++++++++ snforge_std/Scarb.lock | 4 +++- snforge_std/Scarb.toml | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04b356bbce..9f3aeebf9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/setup-scarb@v1.3.2 + 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 ] diff --git a/snforge_std/Scarb.lock b/snforge_std/Scarb.lock index c7b5856aef..c150c5ce66 100644 --- a/snforge_std/Scarb.lock +++ b/snforge_std/Scarb.lock @@ -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" diff --git a/snforge_std/Scarb.toml b/snforge_std/Scarb.toml index 9aa93bddc7..c28db46a95 100644 --- a/snforge_std/Scarb.toml +++ b/snforge_std/Scarb.toml @@ -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"