You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-release.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,30 +4,32 @@ To create and publish a new release of the crate to crates.io:
4
4
5
5
## 1. Update the Version
6
6
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.
8
8
9
-
## 2. Commit the Changes
9
+
## 2. Create a Pull Request
10
10
11
-
-Commit and push the version update to the main branch:
11
+
-Create a branch for the version update:
12
12
```sh
13
+
git checkout -b bump-version-x.y.z
13
14
git add jup-ag-sdk/Cargo.toml
14
15
git commit -m "Bump version to vX.Y.Z"
15
-
git push origin main
16
+
git push origin bump-version-x.y.z
16
17
```
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
17
21
18
-
## 3. Create a Tag
22
+
## 3. Automatic Tag Creation
19
23
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)
27
26
28
-
## 4. GitHub Actions Workflow
27
+
## 4. Run the Publish Workflow
29
28
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:
31
33
- Verify that the version in the tag matches the version in Cargo.toml
0 commit comments