Skip to content

Commit

Permalink
Create continuous-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr authored Aug 18, 2023
1 parent f164a25 commit 935c64f
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This is a basic workflow to help you get started with Actions

name: Continuous deployment

# Controls when the workflow will run
on:
push:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
publish:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Set Up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
cache: 'gradle'

- name: Change wrapper permissions
run: chmod +x ./gradlew

# Create publish to maven
- name: Build apk debug project (APK) - ${{ env.main_project_module }} module
run: ./gradlew publishAllPublicationsToSonatypeRepository

0 comments on commit 935c64f

Please sign in to comment.