Skip to content

Commit 1942991

Browse files
committed
Created a job to run release automation
1 parent 370e365 commit 1942991

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.yamato/ngo-publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ngo_release_preparation:
2+
name: "NGO release preparation"
3+
agent: { type: Unity::VM, flavor: b1.small, image: package-ci/ubuntu-22.04:v4 }
4+
triggers:
5+
recurring:
6+
- branch: develop-2.0.0 # We make new releases from this branch
7+
frequency: weekly # Run at some point every Saturday. Note that it's restricted to every 4th Saturday inside the script
8+
rerun: always
9+
commands:
10+
- pip install PyGithub
11+
- pip install GitPython
12+
# This script checks if requirements for automated release preparations are fulfilled.
13+
# It checks if it's the correct time to run the release automation (every 4th week, end of Netcode sprint), if there is anything in the CHANGELOG to release and if the release branch wasnb't already created.
14+
- python Tools/scripts/ReleaseAutomation/verifyNetcodeReleaseConditions.py
15+
# If the conditions are met, this script branches off, runs release.py that will set up Wrench, regenerate recipes, clean changelog etc and pushes the new release branch.
16+
# By doing this we ensure that package is potentially release ready. Note that package version is already always corresponding to current package state
17+
- python Tools/scripts/ReleaseAutomation/netcodeReleaseBranchCreation.py
18+
# We still need to manually set up Packageworks but this script will already trigger required jobs so we don't need to wait for them.
19+
# Additionally it will also trigger multiple builds with different configurations that we can use for Playtesting
20+
- python Tools/scripts/ReleaseAutomation/triggerYamatoJobsForNetcodeReleaseValidation.py
21+
# If the conditions are met, it will commit changelog update and patch package version bump (to reflect current state of the package on main branch)
22+
- python Tools/scripts/ReleaseAutomation/commitNetcodeChangelogAndPackageVersionUpdates.py

0 commit comments

Comments
 (0)