Update JDK Build Version as well #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Maven Packages | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
settings-path: ${{ github.workspace }}/githubdeploysettings # location for the settings.xml file | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml -s settings.xml -P build-deploy | |
env: | |
SECRET_ACTOR: ${{ secrets.OHNLP_REPO_READ_ACTOR }} | |
SECRET_TOKEN: ${{ secrets.OHNLP_REPO_READ_TOKEN }} | |
- name: Publish to GitHub Packages Apache Maven | |
run: mvn deploy -s $GITHUB_WORKSPACE/githubdeploysettings/settings.xml -P build-deploy | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |