Deploying Android Apps Using GitHub Actions

May 4 2023 · Kotlin 1.7.21, Android 13, Android Studio Electric Eel

Part 1: Automate Releases with GitHub Actions

02. Create a GitHub Workflow

Episode complete

Play next episode

Next
About this episode

Leave a rating/review

See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 01. Introduction to GitHub Actions Next episode: 03. Run Unit & Instrumented Tests

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Transcript: 02. Create a GitHub Workflow

A workflow is a sequence of jobs that can run either in series or in parallel

A job usually is a container for more than one step, where each step is a self-contained function.

Time to create your first workflow.

Switch to the Project Files view to see all the directories. To add a new workflow, create a new directory named .github in the root of your project. Inside this directory, create another directory named workflows.

All workflows are written in YAML, which is a serialization format commonly used in configuration files. One thing to keep in mind is that proper indentation is extremely important in the YAML format. So make sure to follow the indentation presented in the tutorial exactly for your workflows to work.

Inside the workflows directory, create a new file named check_and_deploy.yml.

Add the following code to the file:

name: Test and deploy

jobs:

Here, name is the key you use to identify the workflow on the GitHub Workflows tab. jobs contains a collection of job instances. The jobs can execute in different orders.