forked from soot-oss/soot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'framework' of github.com:CompL-Research/soot into frame…
…work Merging framework with new changes.
- Loading branch information
Showing
1 changed file
with
9 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,51 +43,12 @@ jobs: | |
- name: Build and test Java ${{ matrix.java_version }} | ||
run: | | ||
mvn -B clean test -PJava${{ matrix.java_version }} | ||
DeployArtifacts: | ||
name: Deploy artifacts to Maven Central | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/umbrella' | ||
needs: [BuildAndTest] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Use Java 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: '8' | ||
- name: Deploy artifacts | ||
uses: samuelmeuli/action-maven-publish@v1 | ||
with: | ||
gpg_private_key: ${{ secrets.gpg_private_key }} | ||
gpg_passphrase: ${{ secrets.gpg_passphrase }} | ||
nexus_username: ${{ secrets.nexus_username }} | ||
nexus_password: ${{ secrets.nexus_password }} | ||
maven_args: "-DskipTests -Dcheckstyle.failOnViolation=true" | ||
|
||
# has to happen in same job, so that the documention was already created (would require another checkout and maven run otherwise) | ||
- name: Get Version | ||
id: version | ||
run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | ||
|
||
- name: Organize documentation files for upload | ||
shell: bash | ||
env: | ||
docdir: ./build/docs | ||
run: | | ||
export releasedir=${docdir}/${{ steps.version.outputs.version }} # env variables cannot contain other env variables | ||
mkdir -p ${releasedir}/jdoc | ||
unzip ./target/sootclasses-trunk-javadoc.jar -d ${releasedir}/jdoc/ | ||
mkdir -p ${releasedir}/options | ||
cp ./doc/soot_options.html ${releasedir}/options/ | ||
cp ./doc/soot_options.css ${releasedir}/options/ | ||
cp ./doc/index.html ${docdir}/ | ||
- name: Deploy JavaDoc to GH pages | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: build/ # The folder the action should deploy. | ||
clean: false # Do not remove existing files in gh-pages | ||
- name: Build Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
mvn clean compile assembly:single source:jar | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: target/sootclasses-trunk-jar-with-dependencies.jar |