Debian Codegraph @

ansible_collections/community/zabbix/docs/PUBLISHING_TO_GALAXY.md

raw
1 # Publishing New Versions
2
3 ## Steps to take on forked repository
4
5 1. Create new branch X.Y.Zprep.
6 2. Check all merged PRs since last release and verify they had changelog fragments included. If not add them to _changelogs/fragments/missing.yml_ and commit.
7 3. Generate a changelog entries for new version:
8
9
10 ```
11 # python3 -m venv antsibull-env && source antsibull-env/bin/activate && pip3 install antsibull-changelog
12 antsibull-changelog release --version X.Y.Z --date YYYY-MM-DD
13 ```
14
15 4. Update `galaxy.yml` file and `requirements.yml` example in `README.md` with the new `version` for the collection and commit.
16 5. Push new branch for the review `git push origin X.Y.Zprep`.
17 6. Before merging, ensure that date used for `antsibull-changelog` command is consistent with the day that PR was merged on.
18
19 ## Steps to take on ansible-collections/community.zabbix
20
21 1. After merging the branch from previous steps, tag the version via git and push to GitHub:
22
23
24 ```
25 git tag -a X.Y.Z
26 git push origin X.Y.Z
27 ```
28
29 2. All community.* collections are usually published by Zuul, which works by you having to push a tag, and Zuul will build the collection from that tag (with the version in galaxy.yml set to the tag's version) and publish it. It's usually a good idea to take a look at [Zuul](https://ansible.softwarefactory-project.io/zuul/status) when pushing a tag and watch the release process to see whether it succeeds or not (and afterwards check on [Galaxy](https://galaxy.ansible.com/community/zabbix) whether the newest version shows up - note that it can make a few seconds after publishing finished until it actually shows up; that's new with the new Galaxy).
30
31 If there is an error in building and it seems to be on Zuul side, the best thing is to re-push the tag to trigger the publish step another time. For that, assuming the remote for github.com/ansible-collections/community.zabbix is called upstream, you can do
32
33
34 ```
35 git push upstream :2.3.0 # to delete the tag
36 git push --tags upstream # to re-push all tags
37 ```
38 That should delete and re-create the tag, and thus trigger Zuul again to publish the collection.
39
40 3. If still having problems in step 2. then create a post in "Get Help" section of [Ansible forum](https://forum.ansible.com/c/help/6/none) so somebody from admins can take a look and see/fix why new version has not been published to Galaxy (e.g. https://forum.ansible.com/t/access-to-collection/2295/4).
41
42 4. Create new Release pointing to new X.Y.Z tag https://github.com/ansible-collections/community.zabbix/releases
43
44