Skip to content

Commit

Permalink
rc0
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Oct 30, 2024
1 parent 8e84a8b commit adc9f36
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ on:
jobs:
sozo-test:
runs-on: ubuntu-latest
env:
DOJO_VERSION: v1.0.0-alpha.17
steps:
- uses: actions/checkout@v3
- run: curl -L https://install.dojoengine.org | bash
- run: /home/runner/.config/.dojo/bin/dojoup -v v1.0.0-alpha.17
- 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
if [[ `git status --porcelain` ]]; then
echo The git repo is dirty
echo "Make sure to run \"sozo build\" after changing Scarb.toml"
exit 1
fi
fi
2 changes: 1 addition & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = 1
[[package]]
name = "dojo"
version = "1.0.0-alpha.4"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-alpha.17#e6bab2d0066c3cf1acfc5ee41a27294b5b23697d"
source = "git+https://github.com/dojoengine/dojo?tag=v1.0.0-alpha.18#615e9fdea899d451ac2ad343a71bcebabb6b6cf6"

[[package]]
name = "dojo_starter"
Expand Down
2 changes: 1 addition & 1 deletion Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ spawn = "./scripts/spawn.sh"
move = "./scripts/move.sh"

[dependencies]
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-alpha.17" }
dojo = { git = "https://github.com/dojoengine/dojo", tag = "v1.0.0-alpha.rc0" }

[[target.dojo]]

0 comments on commit adc9f36

Please sign in to comment.