- iOS
- Android
- Xamarin
- GitHub
- GitHub Actions
When developing a mobile application you often needs to update the packages information of your application. For instance:
This kind of actions can be done during the execution of your workflow inside your GitHub Actions, let’s see how!
To achieve this goal I developed a new set of free GitHub Actions, available on the GitHub Marketplace to use in your workflows. These actions are compatible with any type of iOS or Android projects.
Here there are:
To use one of these actions it’s easy, follow one of the links above and then click on Use latest version
button. This will prompt a dialog with the yaml
code to use it.
The first action allows us to update the package name and the name of your application with a few lines:
- name: Update AndroidManifest.xml
uses: damienaicheh/update-android-manifest-package-action@v1.0.0
with:
android-manifest-path: './path_to_your/AndroidManifest.xml'
package-name: 'com.mycompany.demo'
app-name: 'Demo App'
print-file: true
This will update the AndroidManifest.xml
with the new package name: com.mycompany.demo
and a new name for this app: Demo App
. You can also print this file before and after modifing it by setting the print-file
property to true
.
The next action allows us to update the bundle identifier and the application name:
- name: Update Bundle identifier
uses: damienaicheh/update-ios-bundle-identifier-action@v1.0.0
with:
info-plist-path: './path_to_your/Info.plist'
bundle-identifier: 'com.mycompany.demo'
bundle-name: 'Demo'
bundle-display-name: 'Demo App'
print-file: true
This will update the Info.plist
of your project with the new bundle identifier: com.mycompany.demo
and a new name for this app: Demo App
. Like the previous action tou can print this file in the console before and after modifing it by setting the print-file
property to true
.
These actions will help you automatically update the package informations of your mobile projects using GitHub Actions. Feel free to contribute to improve these actions project if you want.
Happy coding!