Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Release athena to Maven central (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi authored Apr 3, 2024
1 parent 21113be commit 002a51f
Show file tree
Hide file tree
Showing 32 changed files with 146 additions and 15,454 deletions.
19 changes: 0 additions & 19 deletions .github/tag-for-release.bash

This file was deleted.

6 changes: 0 additions & 6 deletions .github/upversion.py

This file was deleted.

63 changes: 53 additions & 10 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ jobs:
- uses: actionshub/markdownlint@main
with:
filesToIgnoreRegex: "docs/node_modules\\/.*"
# markdown-link-check:
# name: Markdown Link Check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: gaurav-nelson/github-action-markdown-link-check@v1
# with:
# use-verbose-mode: "yes"

tests:
name: Unit & Integration Tests
Expand All @@ -65,8 +57,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.8'
Expand Down Expand Up @@ -131,3 +121,56 @@ jobs:
context: athena-examples/athena-example-books
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/athena-example-books:latest

push-release-tag:
name: Bump Semantic Version
if: github.ref == 'refs/heads/master'
needs: tests
uses: QubitPi/hashicorp-aws/.github/workflows/version-bump.yml@master
with:
user: QubitPi
email: jack20220723@gmail.com

release:
name: Release athena to Maven Central
if: github.ref == 'refs/heads/master'
needs: push-release-tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: QubitPi/hashicorp-aws/.github/actions/jdk-setup@master
- name: Configure settings.xml for Maven Central release
uses: whelk-io/maven-settings-xml-action@v20
with:
servers: >
[
{
"id": "paion-data",
"username": "${{ secrets.MAVEN_CENTRAL_USERNAME }}",
"password": "${{ secrets.MAVEN_CENTRAL_TOKEN }}",
"passphrase": "${{ secrets.GPG_PASSPHRASE }}"
}
]
profiles: >
[
{
"id": "paion-data",
"properties": {
"gpg.keyname": "paion-data"
}
"activation": {
"activeByDefault": "true"
}
}
]
- name: Fetch GPG key
run: gpg --keyserver keyserver.ubuntu.com --recv-keys ${{ secrets.GPG_PUB_KEY }}
- name: Bump version
run: |
VERSION=$(git describe)
echo "INFO Last tag: $VERSION"
mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false
mvn versions:update-property -Dproperty=version.athena -DnewVersion=$VERSION -DgenerateBackupPoms=false
- name: Release
run: mvn clean deploy -P release -DskipTests
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Athena <sup>![Java Version Badge][Java Version Badge]</sup>
===========================================================

> My sincere thanks to [yahoo/fili] & [yahoo/elide], which gave tremendous amount of guidance on design and development
> of [Athena], and to my former employer, Yahoo, who taught me to love software engineering and fundamentally
> influenced my tech career
[![GitHub Workflow Status][GitHub Workflow Status badge]][GitHub Workflow Status URL]
![[GitHub Last Commit]][GitHub Last Commit badge]
[![Discord][Discord badge]][Discord URL]
Expand Down Expand Up @@ -92,12 +88,6 @@ License

The use and distribution terms for [Athena] are covered by the [Apache License, Version 2.0].

<div align="center">
<a href="https://opensource.org/licenses">
<img align="center" width="50%" alt="License Illustration" src="https://github.com/QubitPi/QubitPi/blob/master/img/apache-2.png?raw=true">
</a>
</div>

[Apache License, Version 2.0]: http://www.apache.org/licenses/LICENSE-2.0.html
[Athena]: https://athena.qubitpi.org/
[Athena Documentation]: https://qubitpi.github.io/athena/doc-index.html
Expand Down
17 changes: 1 addition & 16 deletions athena-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-parent-pom</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>athena-core</artifactId>
Expand Down Expand Up @@ -95,21 +95,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/userConfig.properties</exclude>
<exclude>**/applicationConfig.properties</exclude>
<exclude>**/testApplicationConfig.properties</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>test-jar</id>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
2 changes: 1 addition & 1 deletion athena-examples/athena-example-books/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ FROM jetty:jdk17
LABEL maintainer="Jiaqi (Jack) Liu"
LABEL maintainer-email="jack20220723@gmail.com"

ARG ATHENA_VERSION=1.0-SNAPSHOT
ARG ATHENA_VERSION=1.0.0

ENV JETTY_WEBAPPS_DIR /var/lib/jetty/webapps

Expand Down
2 changes: 1 addition & 1 deletion athena-examples/athena-example-books/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.paiondata.athena</groupId>
<artifactId>athena-examples</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.0.0</version>
</parent>

<artifactId>athena-example-books</artifactId>
Expand Down
19 changes: 0 additions & 19 deletions athena-examples/athena-examples-acceptance-tests/README.md

This file was deleted.

110 changes: 0 additions & 110 deletions athena-examples/athena-examples-acceptance-tests/pom.xml

This file was deleted.

Loading

0 comments on commit 002a51f

Please sign in to comment.