-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e84a8b
commit adc9f36
Showing
4 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters