Skip to content

chore: updated publish workflow #2

chore: updated publish workflow

chore: updated publish workflow #2

name: Publish package to GitHub Packages
on:
push:
branches: [master]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: wrapper
- name: Run build with
run: ./gradlew build
- name: Publish package
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}