mirror of
https://github.com/etlegacy/JoyStick.git
synced 2024-11-25 05:21:21 +00:00
38 lines
768 B
YAML
38 lines
768 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
|
|
with:
|
|
depth: 0
|
|
fetch-tags: true
|
|
|
|
- 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 --info
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|