diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30a4bc1..c1ed6bd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,36 +1,33 @@ -# This is a basic workflow to help you get started with Actions +# A push on master will build, test and publish Jeka on OSSRH. +# Beside it will push the built documentation on the Jeka landing page. -name: CI +# If a tag is present on the last commit, Jeka will publish versioned artifacts according tag name on OSSRH public repo. +# If no tag is present, the built artifacts will be published to OSSRH snapshot repository. +# This logic is implemented within the Jeka build. + +name: Java Build and Publish -# Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the main branch push: - branches: [ main ] - pull_request: - branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab + branches: [ master ] workflow_dispatch: + branches: [ master ] -# 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 "build" build: - # 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@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Jekaw + env: + OSSRH_USER: ${{ secrets.OSSRH_USER }} + OSSRH_PWD: ${{ secrets.OSSRH_PWD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} run: | - echo Add other actions to build, - echo test, and deploy your project. + cd ./dev.jeka.plugins.sonarqube + ./jekaw java#pack java#publish +