gradle/.github/workflows/ci.yml
C10udburst 2d8fde2091 token
2022-08-04 09:23:17 +02:00

23 lines
No EOL
518 B
YAML

name: CI
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build and publish
run: |
chmod +x gradlew
./gradlew :publish -Pversion=${GITHUB_REF##*/}-SNAPSHOT
./gradlew :publish -Pversion=$(git rev-parse --short "$GITHUB_SHA")
env:
GITHUB_TOKEN: ${{ github.token }}