-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update asana_create_action_item to use ERB templates
- Loading branch information
Showing
19 changed files
with
227 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
..._item/templates/appcast-failed-hotfix.yml → ...m/templates/appcast-failed-hotfix.yml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
name: Generate appcast2.xml for ${TAG} hotfix release and upload assets to S3 | ||
name: Generate appcast2.xml for <%= args['tag'] %> hotfix release and upload assets to S3 | ||
html_notes: | | ||
<body> | ||
Publishing ${TAG} hotfix release failed in CI. Please follow the steps to generate the appcast file and upload files to S3 from your local machine.<br> | ||
Publishing <%= args['tag'] %> hotfix release failed in CI. Please follow the steps to generate the appcast file and upload files to S3 from your local machine.<br> | ||
<ol> | ||
<li>Create a new file called <code>release-notes.txt</code> on your disk. | ||
<ul> | ||
<li>Add each release note as a separate line and don't add bullet points (•) – the script will add them automatically.</li> | ||
</ul></li> | ||
<li>Run <code>appcastManager</code>: | ||
<ul> | ||
<li><code>./scripts/appcast_manager/appcastManager.swift --release-hotfix-to-public-channel --dmg ~/Downloads/${DMG_NAME} --release-notes release-notes.txt</code></li> | ||
<li><code>./scripts/appcast_manager/appcastManager.swift --release-hotfix-to-public-channel --dmg ~/Downloads/<%= args['dmg_name'] %> --release-notes release-notes.txt</code></li> | ||
</ul></li> | ||
<li>Verify that the new build is in the appcast file with the latest release notes and no internal channel tag. The phased rollout tag should <em>not</em> be present: | ||
<ul> | ||
<li><code><sparkle:phasedRolloutInterval>43200</sparkle:phasedRolloutInterval></code></li> | ||
</ul></li> | ||
<li>Run <code>upload_to_s3.sh</code> script: | ||
<ul> | ||
<li><code>./scripts/upload_to_s3/upload_to_s3.sh --run --overwrite-duckduckgo-dmg ${VERSION}</code></li> | ||
<li><code>./scripts/upload_to_s3/upload_to_s3.sh --run --overwrite-duckduckgo-dmg <%= args['version'] %></code></li> | ||
</ul></li> | ||
</ol> | ||
When done, please verify that "Check for Updates" works correctly: | ||
<ol> | ||
<li>Launch a debug version of the app with an old version number.</li> | ||
<li>Make sure you're not identified as an internal user in the app.</li> | ||
<li>Go to Main Menu → DuckDuckGo → Check for Updates...</li> | ||
<li>Verify that you're being offered to update to ${TAG}.</li> | ||
<li>Verify that you're being offered to update to <%= args['tag'] %>.</li> | ||
<li>Verify that the update works.</li> | ||
</ol><br> | ||
🔗 Workflow URL: <a href='${WORKFLOW_URL}'>${WORKFLOW_URL}</a>. | ||
🔗 Workflow URL: <a href='<%= args['worklow_url'] %>'><%= args['worklow_url'] %></a>. | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
..._item/templates/appcast-failed-public.yml → ...m/templates/appcast-failed-public.yml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
name: Generate appcast2.xml for ${TAG} public release and upload assets to S3 | ||
name: Generate appcast2.xml for <%= args['tag'] %> public release and upload assets to S3 | ||
html_notes: | | ||
<body> | ||
Publishing ${TAG} release failed in CI. Please follow the steps to generate the appcast file and upload files to S3 from your local machine.<br> | ||
Publishing <%= args['tag'] %> release failed in CI. Please follow the steps to generate the appcast file and upload files to S3 from your local machine.<br> | ||
<ol> | ||
<li>Create a new file called <code>release-notes.txt</code> on your disk. | ||
<ul> | ||
<li>Add each release note as a separate line and don't add bullet points (•) – the script will add them automatically.</li> | ||
</ul></li> | ||
<li>Run <code>appcastManager</code>: | ||
<ul> | ||
<li><code>./scripts/appcast_manager/appcastManager.swift --release-to-public-channel --version ${VERSION} --release-notes release-notes.txt</code></li> | ||
<li><code>./scripts/appcast_manager/appcastManager.swift --release-to-public-channel --version <%= args['version'] %> --release-notes release-notes.txt</code></li> | ||
</ul></li> | ||
<li>Verify that the new build is in the appcast file with the latest release notes, the phased rollout tag (below) and no internal channel tag: | ||
<ul> | ||
<li><code><sparkle:phasedRolloutInterval>43200</sparkle:phasedRolloutInterval></code></li> | ||
</ul></li> | ||
<li>Run <code>upload_to_s3.sh</code> script: | ||
<ul> | ||
<li><code>./scripts/upload_to_s3/upload_to_s3.sh --run --overwrite-duckduckgo-dmg ${VERSION}</code></li> | ||
<li><code>./scripts/upload_to_s3/upload_to_s3.sh --run --overwrite-duckduckgo-dmg <%= args['version'] %></code></li> | ||
</ul></li> | ||
</ol> | ||
When done, please verify that "Check for Updates" works correctly: | ||
<ol> | ||
<li>Launch a debug version of the app with an old version number.</li> | ||
<li>Make sure you're not identified as an internal user in the app.</li> | ||
<li>Go to Main Menu → DuckDuckGo → Check for Updates...</li> | ||
<li>Verify that you're being offered to update to ${TAG}.</li> | ||
<li>Verify that you're being offered to update to <%= args['tag'] %>.</li> | ||
<li>Verify that the update works.</li> | ||
</ol><br> | ||
🔗 Workflow URL: <a href='${WORKFLOW_URL}'>${WORKFLOW_URL}</a>. | ||
🔗 Workflow URL: <a href='<%= args['worklow_url'] %>'><%= args['worklow_url'] %></a>. | ||
</body> |
12 changes: 0 additions & 12 deletions
12
...n/ddg_apple_automation/assets/asana_create_action_item/templates/delete-branch-failed.yml
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
...g_apple_automation/assets/asana_create_action_item/templates/delete-branch-failed.yml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Delete <%= args['branch'] %> branch | ||
html_notes: | | ||
<body> | ||
The <code><%= args['tag'] %></code> public release has been successfully tagged and published in GitHub releases, | ||
but deleting <code><%= args['branch'] %></code> branch failed. Please delete it manually: | ||
<ul> | ||
<li><code>git push origin --delete <%= args['branch'] %></code></li> | ||
</ul> | ||
Complete this task when ready, or if the release branch has already been deleted.<br> | ||
<br> | ||
🔗 Workflow URL: <a href='<%= args['worklow_url'] %>'><%= args['worklow_url'] %></a>. | ||
</body> |
39 changes: 0 additions & 39 deletions
39
...pple_automation/assets/asana_create_action_item/templates/internal-release-tag-failed.yml
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
..._automation/assets/asana_create_action_item/templates/internal-release-tag-failed.yml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Tag <%= args['branch'] %> branch and create GitHub release | ||
html_notes: | | ||
<body> | ||
Failed to tag the release with <code><%= args['tag'] %></code> tag.<br> | ||
Please follow instructions below to tag the branch, make GitHub release and merge release branch to <code><%= args['base_branch'] %></code> manually.<br> | ||
<br> | ||
Issue the following git commands to tag the release and merge the branch: | ||
<ul> | ||
<li><code>git fetch origin</code></li> | ||
<li><code>git checkout <%= args['branch'] %></code> switch to the release branch</li> | ||
<li><code>git pull origin <%= args['branch'] %></code> pull latest changes</li> | ||
<li><code>git tag <%= args['tag'] %></code> tag the release</li> | ||
<li><code>git push origin <%= args['tag'] %></code> push the tag</li> | ||
<li><code>git checkout <%= args['base_branch'] %></code> switch to <%= args['base_branch'] %></li> | ||
<li><code>git pull origin <%= args['base_branch'] %></code> pull the latest code</li> | ||
<li><code>git merge <%= args['branch'] %></code> | ||
<ul> | ||
<li>Resolve conflicts as needed</li> | ||
<li>When merging a hotfix branch into an internal release branch, you will get conflicts in version and build number xcconfig files: | ||
<ul> | ||
<li>In the version file: accept the internal version number (higher).</li> | ||
<li>In the build number file: accept the hotfix build number (higher). This step is very important in order to calculate the build number of the next internal release correctly.</li> | ||
</ul></li> | ||
</ul></li> | ||
<li><code>git push origin <%= args['base_branch'] %></code> push merged branch</li> | ||
</ul><br> | ||
To create GitHub release: | ||
<ul> | ||
<li>Set up GH CLI if you haven't yet: <a data-asana-gid='1203791243007683'/></li> | ||
<li>Run the following command: | ||
<ul> | ||
<li><code>gh release create <%= args['tag'] %> --generate-notes --prerelease --notes-start-tag <%= args['last_release_tag'] %></code></li> | ||
</ul></li> | ||
</ul><br> | ||
Complete this task when ready and proceed with testing the build. If you're bumping an internal release, you should get another task asking you to publish the release in Sparkle. | ||
Look for other tasks in <a data-asana-gid='<%= args['automation_task_id'] %>'/> task and handle them as needed.<br> | ||
<br> | ||
🔗 Workflow URL: <a href='<%= args['worklow_url'] %>'><%= args['worklow_url'] %></a>. | ||
</body> |
28 changes: 0 additions & 28 deletions
28
...ne/plugin/ddg_apple_automation/assets/asana_create_action_item/templates/merge-failed.yml
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...lugin/ddg_apple_automation/assets/asana_create_action_item/templates/merge-failed.yml.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Merge <%= args['branch'] %> to <%= args['base_branch'] %> | ||
html_notes: | | ||
<body> | ||
The <code><%= args['tag'] %></code> release has been successfully tagged and published in GitHub releases, | ||
but merging to <code><%= args['base_branch'] %></code> failed. Please resolve conflicts and merge <code><%= args['branch'] %></code> to <code><%= args['base_branch'] %></code> manually.<br> | ||
<br> | ||
Issue the following git commands: | ||
<ul> | ||
<li><code>git fetch origin</code></li> | ||
<li><code>git checkout <%= args['branch'] %></code> switch to the release branch</li> | ||
<li><code>git pull origin <%= args['branch'] %></code> pull latest changes</li> | ||
<li><code>git checkout <%= args['base_branch'] %></code> switch to <%= args['base_branch'] %></li> | ||
<li><code>git pull origin <%= args['base_branch'] %></code> pull the latest code</li> | ||
<li><code>git merge <%= args['branch'] %></code> | ||
<ul> | ||
<li>Resolve conflicts as needed</li> | ||
<li>When merging a hotfix branch into an internal release branch, you will get conflicts in version and build number xcconfig files: | ||
<ul> | ||
<li>In the version file: accept the internal version number (higher).</li> | ||
<li>In the build number file: accept the hotfix build number (higher). This step is very important in order to calculate the build number of the next internal release correctly.</li> | ||
</ul></li> | ||
</ul></li> | ||
<li><code>git push origin <%= args['base_branch'] %></code> push merged branch</li> | ||
</ul> | ||
Complete this task when ready and proceed with testing the build.<br> | ||
<br> | ||
🔗 Workflow URL: <a href='<%= args['worklow_url'] %>'><%= args['worklow_url'] %></a>. | ||
</body> |
Oops, something went wrong.