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: PACKAGING.md
+65-1Lines changed: 65 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,47 @@
2
2
3
3
The following are instructions for the maintainers of `newdoc` to package and distribute new releases.
4
4
5
+
6
+
## Preparing a new version
7
+
8
+
1. Update newdoc dependencies:
9
+
10
+
```
11
+
$ cargo update
12
+
```
13
+
14
+
2. Make your changes to the code and merge them to the `main` branch.
15
+
16
+
3. Update the version number in `Cargo.toml` and `newdoc.spec`. The versions must be identical.
17
+
18
+
4. Commit the version update:
19
+
20
+
```
21
+
$ git commit -am "Update the version to X.Y.Z"
22
+
```
23
+
24
+
5. Tag the latest commit with the new version number:
25
+
26
+
```
27
+
$ git tag -a vX.Y.Z -m "Version X.Y.Z"
28
+
```
29
+
30
+
Make sure to prefix the version in the tag name with "v" for "version".
31
+
32
+
6. Push the version tag to the remote repository:
33
+
34
+
```
35
+
$ git push --follow-tags
36
+
```
37
+
38
+
If you're using several remote repositories, such as origin and upstream, make sure to push the tag to all of them.
39
+
40
+
5
41
## Packaging and distributing newdoc as an RPM package
6
42
7
-
1. Log into the Copr repository administration: <https://copr.fedorainfracloud.org/coprs/mareksu/newdoc-rs/>.
43
+
1. Log into the Copr repository administration.
44
+
45
+
Currently, newdoc is packaged in the [mareksu/newdoc-rs](https://copr.fedorainfracloud.org/coprs/mareksu/newdoc-rs/) repository.
8
46
9
47
2. Go to the **Builds** tab.
10
48
@@ -18,6 +56,32 @@ The following are instructions for the maintainers of `newdoc` to package and di
18
56
19
57
7. Click **Build**.
20
58
59
+
60
+
## Packaging and distributing newdoc with Homebrew
61
+
62
+
1. Make sure you have access to the existing Homebrew repository.
63
+
64
+
Currently, newdoc is packaged in [msuchane/homebrew-repo](https://github.com/redhat-documentation/homebrew-repo), but a fork at [redhat-documentation/homebrew-repo](https://github.com/redhat-documentation/homebrew-repo) is also available.
65
+
66
+
2. Download the `.tar.gz` archive that Github created for your latest tagged version:
0 commit comments