JoyStick/.github/workflows/build.yaml

35 lines
701 B
YAML

name: Publish package to GitHub Packages
on:
push:
tags:
- 'v*'
workflow_dispatch:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
name: Checkout sources
- uses: actions/setup-java@v4
name: Setup Java 17
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Build and publish
run: ./gradlew publish --no-daemon
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}