Skip to content

Workflow file for this run

name: πŸ“¦ Publish package to GitHub Packages
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Add exec permission
run: chmod +x gradlew
- name: Disable configuration cache
run: echo -e "\norg.gradle.unsafe.configuration-cache=false\n" >> gradle.properties
- name: Append publish.gradle to build.gradle
run: cat .github/workflows/publish.gradle >> app/build.gradle
- name: 🎁 Publish package
uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}