From 3812b9ef336f89f963f8bf49f319976ed06a2cf1 Mon Sep 17 00:00:00 2001 From: Oleksandr Balan Date: Mon, 22 Aug 2022 17:15:11 +0200 Subject: [PATCH] Create publish.yml --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d27f728 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +# This is a basic workflow to help you get started with Actions + +name: Publish To Maven Central + +# Controls when the workflow will run +on: + # Triggers the workflow when tag is pushed + push: + tags: .* + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "publish" + publish: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: spotless + run: ./gradlew publish --no-daemon --no-parallel