Skip to content

Commit

Permalink
test github actions release (#469)
Browse files Browse the repository at this point in the history
* avoid name clash
* rename to avoid clash
* try using resuable workflow
  • Loading branch information
denis-yuen committed May 31, 2023
1 parent 6671c22 commit 190f032
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ commands:
name: send coverage
command: bash <(curl -s https://codecov.io/bash) -F ${DIRECTORY//-} || echo "Codecov did not collect coverage reports"
- store_artifacts:
path: reports/target/site
path: dockstore-cli-reports/target/site


install_dockerize:
Expand Down
51 changes: 5 additions & 46 deletions .github/workflows/deploy_tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,8 @@ on:


jobs:
build:
runs-on: ubuntu-22.04

# Should only release tags
# TODO: should only release tags where the required status checks are passing
if: startsWith(github.ref, 'refs/tags/')

permissions:
id-token: write

steps:
- uses: actions/checkout@v3
# Step that does that actual cache save and restore
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: install git secrets
run: |
wget --no-verbose -O git-secrets-1.3.0.tar.gz https://github.com/awslabs/git-secrets/archive/1.3.0.tar.gz
tar -zxf git-secrets-1.3.0.tar.gz
cd git-secrets-1.3.0
sudo make install
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17.0.4+8'
distribution: 'adopt'

- name: Store Maven project version
run: echo "maven_project_version=$(mvn help:evaluate -Dexpression=project.version -Dchangelist=${{ github.event.inputs.changelist }} -q -DforceStdout)" >> $GITHUB_ENV

- name: Read exported variable
run: |
echo "${{ env.maven_project_version }}"
- name: Deploy with mvnw
run: |
git config --global user.email "${{ github.actor }}"
git config --global user.name "${{ github.actor }}"
./mvnw --batch-mode deploy -ntp -s .github/collab-mvn-settings.xml -DskipTests -Dchangelist=${{ github.event.inputs.changelist }}
env:
COLLAB_DEPLOY_TOKEN: ${{ secrets.COLLAB_DEPLOY_TOKEN }}
call-reusable-tagged-release:
uses: dockstore/workflow-actions/.github/workflows/deploy_tagged.yaml@main
with:
changelist: ${{ inputs.changelist }}
secrets: inherit
2 changes: 1 addition & 1 deletion reports/pom.xml → dockstore-support-reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>reports</artifactId>
<artifactId>dockstore-support-reports</artifactId>
<!-- do not set packaging to pom, because otherwise we will receive "Not executing Javadoc as the project is not a Java classpath-capable package" -->

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<!-- this is not an aggregated path -->
<sonar.coverage.jacoco.xmlReportPaths>
${project.basedir}/target/jacoco.xml,${project.basedir}/target/jacoco-it.xml,${project.basedir}/../reports/target/site/jacoco-aggregate/jacoco.xml
${project.basedir}/target/jacoco.xml,${project.basedir}/target/jacoco-it.xml,${project.basedir}/../dockstore-support-reports/target/site/jacoco-aggregate/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
<!-- end sonarcloud properties -->
<cwlavro.version>2.0.4.7</cwlavro.version>
Expand Down Expand Up @@ -125,7 +125,7 @@
<module>metricsaggregator</module>
<module>toolbackup</module>
<module>tooltester</module>
<module>reports</module>
<module>dockstore-support-reports</module>
</modules>


Expand Down

0 comments on commit 190f032

Please sign in to comment.