Skip to content

Create DeepPhe Release Zips #71

Create DeepPhe Release Zips

Create DeepPhe Release Zips #71

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Create DeepPhe Release Zips
# Controls when the workflow will run
on:
# 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 "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:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
repository: DeepPhe/DeepPhe-Release
ref: 'xn0.7.0'
path: 'DeepPhe'
- uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: |
cd DeepPhe
cd dphe-onto-db2
mvn --batch-mode clean install -U -DskipTests
cd ..
cd dphe-neo4j
mvn --batch-mode clean install -U -DskipTests
cd ..
cd dphe-nlp2
echo "dphe_nlp_version=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
mvn --batch-mode clean install -U -DskipTests
cd ..
mkdir zips
- name: Create zips
id: create_zips
run: echo "Creating zips..."
- uses: vimtor/action-zip@v1
with:
files: DeepPhe/dphe-nlp2/target/deepphe-${{ env.dphe_nlp_version }}-bin/deepphe-${{ env.dphe_nlp_version }}/bin/
dest: zips/DeepPhe-bin.zip
recursive: true
- uses: vimtor/action-zip@v1
with:
files: DeepPhe/dphe-nlp2/target/deepphe-${{ env.dphe_nlp_version }}-bin/deepphe-${{ env.dphe_nlp_version }}/lib/ DeepPhe/dphe-nlp2/target/deepphe-nlp.jar
dest: zips/DeepPhe-lib.zip
recursive: true
- uses: vimtor/action-zip@v1
with:
files: DeepPhe/dphe-nlp2/target/deepphe-${{ env.dphe_nlp_version }}-bin/deepphe-${{ env.dphe_nlp_version }}/resources/
dest: zips/DeepPhe-resources.zip
recursive: true
- name: Upload Release Asset
id: upload-resources
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: zips/DeepPhe-resources.zip
asset_name: DeepPhe-resources.zip
tag: 'refs/heads/main'
overwrite: true
- name: Upload Release Asset
id: upload-lib
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: zips/DeepPhe-lib.zip
asset_name: DeepPhe-lib.zip
tag: 'refs/heads/main'
overwrite: true
- name: Upload Release Asset
id: upload-bin
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: zips/DeepPhe-bin.zip
asset_name: DeepPhe-bin.zip
tag: 'refs/heads/main'
overwrite: true