Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed POM versions for tests, added Sanity Checks workflow, disable… #1

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 102 additions & 102 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ jobs:

steps:

- name: Setup GitHub Pages
id: pages
uses: actions/configure-pages@v4
with:
enablement: true
#- name: Setup GitHub Pages
# id: pages
# uses: actions/configure-pages@v4
# with:
# enablement: true

- uses: actions/checkout@v4

Expand All @@ -150,87 +150,87 @@ jobs:
git fetch
git checkout ${{ needs.prepare.outputs.tagName }} 2>/dev/null

- name: Perform MetricsHub Artifacts release to Maven Central
run: |
mvn -B -U -Prelease deploy --file pom.xml \
-Dgpg.passphraseServerId=gpg.passphrase \
-Darguments=-Dgpg.passphraseServerId=gpg.passphrase
env:
GITHUB_TOKEN: ${{ github.token }}
AUTO_RELEASE_AFTER_CLOSE: ${{ inputs.autoRelease }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}

- name: Upload Maven Site to GitHub Pages
uses: actions/upload-pages-artifact@v3
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
path: ./metricshub-doc/target/site

- name: Upload Linux Artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: metricshub-linux-package-${{ inputs.releaseVersion }}
path: |
./metricshub-linux/target/metricshub-linux-${{ inputs.releaseVersion }}.tar.gz
./metricshub-linux/target/metricshub-linux-${{ inputs.releaseVersion }}.buildinfo

- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'windows-latest' }}
with:
name: metricshub-windows-package-${{ inputs.releaseVersion }}
path: |
./metricshub-windows/target/metricshub-windows-${{ inputs.releaseVersion }}.zip
./metricshub-windows/target/metricshub-windows-${{ inputs.releaseVersion }}.buildinfo

- name: Upload Site Artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: metricshub-site-${{ inputs.releaseVersion }}
path: |
./metricshub-doc/target/metricshub-doc-${{ inputs.releaseVersion }}-site.jar
./metricshub-doc/target/metricshub-doc-${{ inputs.releaseVersion }}.buildinfo

- name: Upload Docker Artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: metricshub-docker-package-${{ inputs.releaseVersion }}
path: ./metricshub-linux/target/metricshub-linux-${{ inputs.releaseVersion }}-docker.tar.gz

- name: Summary with staging repositories and buildinfo
id: stagingList
run: |
echo "# Staging Repositories" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
mvn -B -U \
-Prelease \
org.sonatype.plugins:nexus-staging-maven-plugin:rc-list >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
echo "# Buildinfo" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat target/*.buildinfo >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
#- name: Perform MetricsHub Artifacts release to Maven Central
# run: |
# mvn -B -U -Prelease deploy --file pom.xml \
# -Dgpg.passphraseServerId=gpg.passphrase \
# -Darguments=-Dgpg.passphraseServerId=gpg.passphrase
# env:
# GITHUB_TOKEN: ${{ github.token }}
# AUTO_RELEASE_AFTER_CLOSE: ${{ inputs.autoRelease }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}

#- name: Upload Maven Site to GitHub Pages
# uses: actions/upload-pages-artifact@v3
# if: ${{ matrix.os == 'ubuntu-latest' }}
# with:
# path: ./metricshub-doc/target/site

#- name: Upload Linux Artifact
# uses: actions/upload-artifact@v4
# if: ${{ matrix.os == 'ubuntu-latest' }}
# with:
# name: metricshub-linux-package-${{ inputs.releaseVersion }}
# path: |
# ./metricshub-linux/target/metricshub-linux-${{ inputs.releaseVersion }}.tar.gz
# ./metricshub-linux/target/metricshub-linux-${{ inputs.releaseVersion }}.buildinfo

#- name: Upload Windows Artifact
# uses: actions/upload-artifact@v4
# if: ${{ matrix.os == 'windows-latest' }}
# with:
# name: metricshub-windows-package-${{ inputs.releaseVersion }}
# path: |
# ./metricshub-windows/target/metricshub-windows-${{ inputs.releaseVersion }}.zip
# ./metricshub-windows/target/metricshub-windows-${{ inputs.releaseVersion }}.buildinfo

#- name: Upload Site Artifact
# uses: actions/upload-artifact@v4
# if: ${{ matrix.os == 'ubuntu-latest' }}
# with:
# name: metricshub-site-${{ inputs.releaseVersion }}
# path: |
# ./metricshub-doc/target/metricshub-doc-${{ inputs.releaseVersion }}-site.jar
# ./metricshub-doc/target/metricshub-doc-${{ inputs.releaseVersion }}.buildinfo

#- name: Upload Docker Artifact
# uses: actions/upload-artifact@v4
# if: ${{ matrix.os == 'ubuntu-latest' }}
# with:
# name: metricshub-docker-package-${{ inputs.releaseVersion }}
# path: ./metricshub-linux/target/metricshub-linux-${{ inputs.releaseVersion }}-docker.tar.gz

#- name: Summary with staging repositories and buildinfo
# id: stagingList
# run: |
# echo "# Staging Repositories" >> $GITHUB_STEP_SUMMARY
# echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
# mvn -B -U \
# -Prelease \
# org.sonatype.plugins:nexus-staging-maven-plugin:rc-list >> $GITHUB_STEP_SUMMARY
# echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
# echo "# Buildinfo" >> $GITHUB_STEP_SUMMARY
# echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
# cat target/*.buildinfo >> $GITHUB_STEP_SUMMARY
# echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
# env:
# OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}

# Deployment job
deploy:
name: Deploy GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: release
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
#deploy:
# name: Deploy GitHub Pages
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: release
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4

# Finalize job
finalize:
Expand All @@ -241,24 +241,24 @@ jobs:

- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
merge-multiple: true

- name: Create a GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.prepare.outputs.tagName }}
fail_on_unmatched_files: false
generate_release_notes: true
files: |
metricshub-linux-${{ inputs.releaseVersion }}-docker.tar.gz
metricshub-doc-${{ inputs.releaseVersion }}-site.jar
metricshub-doc-${{ inputs.releaseVersion }}.buildinfo
metricshub-windows-${{ inputs.releaseVersion }}.zip
metricshub-windows-${{ inputs.releaseVersion }}.buildinfo
metricshub-linux-${{ inputs.releaseVersion }}.buildinfo
metricshub-linux-${{ inputs.releaseVersion }}.tar.gz
#- uses: actions/download-artifact@v4
# with:
# merge-multiple: true

#- name: Create a GitHub Release
# uses: softprops/action-gh-release@v1
# with:
# tag_name: ${{ needs.prepare.outputs.tagName }}
# fail_on_unmatched_files: false
# generate_release_notes: true
# files: |
# metricshub-linux-${{ inputs.releaseVersion }}-docker.tar.gz
# metricshub-doc-${{ inputs.releaseVersion }}-site.jar
# metricshub-doc-${{ inputs.releaseVersion }}.buildinfo
# metricshub-windows-${{ inputs.releaseVersion }}.zip
# metricshub-windows-${{ inputs.releaseVersion }}.buildinfo
# metricshub-linux-${{ inputs.releaseVersion }}.buildinfo
# metricshub-linux-${{ inputs.releaseVersion }}.tar.gz

- name: Create Pull Request from ${{ needs.prepare.outputs.branchName }} to ${{ github.event.repository.default_branch }}
uses: devops-infra/[email protected]
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/sanity-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sanity Checks

on:
workflow_dispatch:
inputs:
who:
description: 'Who to greet'
required: true
type: string

jobs:
sanity-debian:
runs-on: ubuntu-latest
name: Performs sanity test on MetricsHub archive on Debian
steps:
- uses: actions/checkout@v4
- id: foo
uses: ChristopheClermont/metricshub-sanity-action@v1-dev
with:
who-to-greet: ${{ inputs.who || 'Mona the Octocat'}}
2 changes: 1 addition & 1 deletion metricshub-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.sentrysoftware</groupId>
<artifactId>metricshub-parent</artifactId>
<version>0.9.03-SNAPSHOT</version>
<version>0.9.0000-SNAPSHOT</version>
</parent>

<artifactId>metricshub-agent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion metricshub-doc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.sentrysoftware</groupId>
<artifactId>metricshub-parent</artifactId>
<version>0.9.03-SNAPSHOT</version>
<version>0.9.0000-SNAPSHOT</version>
</parent>

<artifactId>metricshub-doc</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion metricshub-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.sentrysoftware</groupId>
<artifactId>metricshub-parent</artifactId>
<version>0.9.03-SNAPSHOT</version>
<version>0.9.0000-SNAPSHOT</version>
</parent>

<artifactId>metricshub-engine</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion metricshub-linux/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.sentrysoftware</groupId>
<artifactId>metricshub-parent</artifactId>
<version>0.9.03-SNAPSHOT</version>
<version>0.9.0000-SNAPSHOT</version>
</parent>

<artifactId>metricshub-linux</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion metricshub-windows/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.sentrysoftware</groupId>
<artifactId>metricshub-parent</artifactId>
<version>0.9.03-SNAPSHOT</version>
<version>0.9.0000-SNAPSHOT</version>
</parent>

<artifactId>metricshub-windows</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.sentrysoftware</groupId>
<artifactId>metricshub-parent</artifactId>
<version>0.9.03-SNAPSHOT</version>
<version>0.9.0000-SNAPSHOT</version>

<packaging>pom</packaging>

Expand Down Expand Up @@ -118,7 +118,7 @@
<prettier-maven-plugin.version>0.21</prettier-maven-plugin.version>
<prettierJava.version>2.5.0</prettierJava.version>
<metricshub-jre.version>1.0.01</metricshub-jre.version>
<project.build.outputTimestamp>2024-03-28T15:07:12Z</project.build.outputTimestamp>
<project.build.outputTimestamp>2024-05-15T09:15:25Z</project.build.outputTimestamp>

</properties>

Expand Down