Skip to content

Commit 0a06060

Browse files
authored
Merge pull request #15 from Jupiter-DevRel/feature/ci-release
feature/ci-release
2 parents a1c7186 + 18caee0 commit 0a06060

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

README-release.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,32 @@ To create and publish a new release of the crate to crates.io:
44

55
## 1. Update the Version
66

7-
- Update the version in `jup-ag-sdk/Cargo.toml` following [semantic versioning](https://semver.org/), e.g., `0.1.5``0.2.0` for a minor update.
7+
- Update the version in `jup-ag-sdk/Cargo.toml` following [semantic versioning](https://semver.org/), e.g., `1.0.2``1.0.3` for a patch update.
88

9-
## 2. Commit the Changes
9+
## 2. Create a Pull Request
1010

11-
- Commit and push the version update to the main branch:
11+
- Create a branch for the version update:
1212
```sh
13+
git checkout -b bump-version-x.y.z
1314
git add jup-ag-sdk/Cargo.toml
1415
git commit -m "Bump version to vX.Y.Z"
15-
git push origin main
16+
git push origin bump-version-x.y.z
1617
```
18+
- Create a pull request to merge these changes into the main branch
19+
- Get the PR reviewed and approved
20+
- Once merged, the auto-tag workflow will run automatically
1721

18-
## 3. Create a Tag
22+
## 3. Automatic Tag Creation
1923

20-
- Tag the commit with the new version:
21-
```sh
22-
git tag vX.Y.Z
23-
git push origin vX.Y.Z
24-
```
25-
26-
Replace `vX.Y.Z` with the actual version number (e.g., `v0.2.0`).
24+
- The GitHub Actions workflow will automatically create a tag matching the version in Cargo.toml when the PR is merged
25+
- You can check the status of the auto-tag workflow in the [Actions tab](https://github.com/Jupiter-DevRel/jup-rust-sdk/actions/workflows/auto-tag.yml)
2726

28-
## 4. GitHub Actions Workflow
27+
## 4. Run the Publish Workflow
2928

30-
- When the tag is pushed, the `publish.yml` GitHub Actions workflow will automatically:
29+
- Go to the [Publish Workflow page](https://github.com/Jupiter-DevRel/jup-rust-sdk/actions/workflows/publish.yml)
30+
- Click on "Run workflow" button (dropdown on the right side)
31+
- Select the branch (usually "main") and click "Run workflow"
32+
- The workflow will:
3133
- Verify that the version in the tag matches the version in Cargo.toml
3234
- Build the package using Cargo
3335
- Publish the crate to crates.io

0 commit comments

Comments
 (0)