diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml new file mode 100644 index 000000000..1022a808f --- /dev/null +++ b/.github/workflows/continuous-deployment.yml @@ -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