From a71aa5fcdca119e13439693542399b0a2f090e7b Mon Sep 17 00:00:00 2001 From: ponderingdemocritus Date: Mon, 11 Nov 2024 09:05:16 +1100 Subject: [PATCH 1/2] bump --- .github/workflows/contracts.yaml | 2 +- .github/workflows/packages.yaml | 2 +- Scarb.lock | 6 +++--- Scarb.toml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/contracts.yaml b/.github/workflows/contracts.yaml index 2496c9f..c7d14ba 100644 --- a/.github/workflows/contracts.yaml +++ b/.github/workflows/contracts.yaml @@ -5,7 +5,7 @@ on: pull_request: env: - DOJO_VERSION: v1.0.0-rc.1 + DOJO_VERSION: v1.0.0-rc.2 SCARB_VERSION: 2.8.4 WORKING_DIRECTORY: ./contracts diff --git a/.github/workflows/packages.yaml b/.github/workflows/packages.yaml index 714b40a..cc9a697 100644 --- a/.github/workflows/packages.yaml +++ b/.github/workflows/packages.yaml @@ -5,7 +5,7 @@ on: pull_request: env: - DOJO_VERSION: v1.0.0-rc.1 + DOJO_VERSION: v1.0.0-rc.2 SCARB_VERSION: 2.8.4 WORKING_DIRECTORY: ./packages diff --git a/Scarb.lock b/Scarb.lock index 201799b..e0e4c37 100644 --- a/Scarb.lock +++ b/Scarb.lock @@ -20,7 +20,7 @@ dependencies = [ [[package]] name = "dojo" version = "1.0.0-rc.0" -source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-rc.1#c789997f1a7cf5628d6b3fc01ce2851fca7a35bf" +source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-rc.2#6725a8f20af56213fa7382aa1e158817f3ee623c" dependencies = [ "dojo_plugin", ] @@ -28,7 +28,7 @@ dependencies = [ [[package]] name = "dojo_cairo_test" version = "1.0.0-rc.0" -source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-rc.1#c789997f1a7cf5628d6b3fc01ce2851fca7a35bf" +source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-rc.2#6725a8f20af56213fa7382aa1e158817f3ee623c" dependencies = [ "dojo", ] @@ -36,4 +36,4 @@ dependencies = [ [[package]] name = "dojo_plugin" version = "2.8.4" -source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-rc.1#c789997f1a7cf5628d6b3fc01ce2851fca7a35bf" +source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-rc.2#6725a8f20af56213fa7382aa1e158817f3ee623c" diff --git a/Scarb.toml b/Scarb.toml index f2c65ed..d993b3b 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -8,8 +8,8 @@ cairo-version = "2.8.4" version = "0.0.0" [workspace.dependencies] -dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-rc.1" } -dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-rc.1" } +dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-rc.2" } +dojo_cairo_test = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-rc.2" } starknet = "2.8.4" cairo_test = "2.8.4" From 9af5bf50dee1acc1f9fd33b9c26a7698d5a65288 Mon Sep 17 00:00:00 2001 From: ponderingdemocritus Date: Mon, 11 Nov 2024 09:06:45 +1100 Subject: [PATCH 2/2] add release --- .github/workflows/release.yaml | 43 ++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..2645644 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,43 @@ +name: Release + +on: + workflow_dispatch: + inputs: + version: + description: "Version to release (e.g., v1.0.0)" + required: true + type: string + dojo_version: + description: "Dojo version to use" + required: true + type: string + +jobs: + create-release: + runs-on: ubuntu-latest + env: + DOJO_VERSION: ${{ inputs.dojo_version }} + steps: + - uses: actions/checkout@v3 + + # Setup and test with specified Dojo version + - run: curl -L https://install.dojoengine.org | bash + - run: /home/runner/.config/.dojo/bin/dojoup -v ${{ env.DOJO_VERSION }} + - run: | + /home/runner/.config/.dojo/bin/sozo build + /home/runner/.config/.dojo/bin/sozo test + + # Create tag and release + - name: Create Tag + run: | + git tag ${{ inputs.version }} + git push origin ${{ inputs.version }} + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + tag_name: ${{ inputs.version }} + name: Release ${{ inputs.version }} + draft: false + prerelease: false + generate_release_notes: true