gradle/.github/workflows/ci.yml

23 lines
518 B
YAML
Raw Normal View History

2022-08-04 07:19:27 +00:00
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
2022-08-04 07:23:17 +00:00
./gradlew :publish -Pversion=$(git rev-parse --short "$GITHUB_SHA")
env:
GITHUB_TOKEN: ${{ github.token }}