0.1.21 #41
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: Java CD | |
on: | |
release: | |
types: published | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Deploy to Bintray | |
id: deploy-to-bintray | |
run: | | |
mvn versions:set -DnewVersion=${{ github.event.release.tag_name }} | |
mvn deploy -s .github/github-settings.xml || echo "deploy failed" >&2 | |
env: | |
GITHUB_ACTOR: AbdullinAM | |
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_TOKEN }} | |
- name: Move sources jar file | |
run: mv target/*-sources.jar sources.jar | |
- name: Move target jar file | |
run: mv target/*[^a-zA-Z].jar target.jar | |
- name: Attach source jar to release | |
id: upload-source-asset | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: sources.jar | |
asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}-sources.jar | |
asset_content_type: application/zip | |
- name: Attach target jar to release | |
id: upload-release-asset | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: target.jar | |
asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.jar | |
asset_content_type: application/zip |