Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Delete libs directory #336

Delete libs directory

Delete libs directory #336

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master]
pull_request:
branches: [ master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: Extract Maven project version
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
id: project
- name: Show extracted Maven project version
run: echo ${{ steps.project.outputs.version }}
- name: Get version
run: |
VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout )
echo "::set-output name=version::$VERSION"
id: get_version
- name: ls
run: 'ls'
id: ls
- name: ls target
run: 'cd target && ls'
id: lstarget
- name: Remove Deobfuscated Jar
run: "find . -type f ! -name 'DreamNetwork.jar' -delete"
id: remove
- name: Create Dir
run: mkdir staging && cp target/DreamNetwork.jar staging
- uses: actions/upload-artifact@v2
with:
name: Package
path: stagging
- name: Creating Version.txt
run: echo "${{ steps.project.outputs.version }}#${{github.run_number}}" > version.txt
- name: Pushing DreamNetwork.jar to CDN
id: push_directory
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'target/DreamNetwork.jar'
destination_repo: 'DreamNetworkCloud/DreamNetwork-CDN'
destination_folder: 'hypervisor/builds/${{ steps.project.outputs.version }}/${{github.run_number}}'
user_email: 'altata01@hotmail.com'
user_name: 'Alexandre01Dev'
commit_message: 'Pushing new build ${{ steps.project.outputs.version }}#${{github.run_number}}.'
- name: Pushing version.txt to CDN
id: push_version
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source_file: 'version.txt'
destination_repo: 'DreamNetworkCloud/DreamNetwork-CDN'
destination_folder: 'hypervisor/builds/'
user_email: 'altata01@hotmail.com'
user_name: 'Alexandre01Dev'
commit_message: 'Updating version.txt -> ${{ steps.project.outputs.version }}#${{github.run_number}}.'