mirror of
https://github.com/etlegacy/JoyStick.git
synced 2024-11-25 13:31:47 +00:00
35 lines
701 B
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 }}
|
|
|