-
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.
- Loading branch information
Showing
15 changed files
with
106 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: ci-cd | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
tags: [1.*] | ||
paths: | ||
- ".github/workflows/ci-cd.yml" | ||
- "src/**" | ||
- "pom.xml" | ||
# pull_request: | ||
# branches: [master] | ||
schedule: | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌───────────── hour (0 - 23) | ||
# │ │ ┌───────────── day of the month (1 - 31) | ||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# * * * * * | ||
- cron: "15 1 * * *" | ||
|
||
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: ci-cd | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
env: | ||
MVN: mvn --show-version --batch-mode | ||
steps: | ||
- name: jdk11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: "11" | ||
distribution: "adopt" | ||
server-id: ossrh | ||
server-username: OSSRH_USR | ||
server-password: OSSRH_PWD | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: cache ~/.m2 | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
- name: version set | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: $MVN versions:set -DnewVersion=${GITHUB_REF#refs/tags/} | ||
- name: mvn clean compile | ||
run: $MVN clean compile | ||
- name: mvn test | ||
run: $MVN test | ||
- name: mvn deploy | ||
run: $MVN --activate-profiles deploy --define gpg.passphrase=${{ secrets.GPG_PASSPHRASE }} --define skipTests deploy | ||
env: | ||
OSSRH_USR: ${{ secrets.OSSRH_USR }} | ||
OSSRH_PWD: ${{ secrets.OSSRH_PWD }} | ||
- name: mvn release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: $MVN --activate-profiles deploy nexus-staging:release | ||
env: | ||
OSSRH_USR: ${{ secrets.OSSRH_USR }} | ||
OSSRH_PWD: ${{ secrets.OSSRH_PWD }} | ||
- name: github release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
target/payload-*.jar | ||
target/payload-*.jar.asc | ||
# - name: Step To run on failure | ||
# if: ${{ failure() }} | ||
# run: $MVN --activate-profiles deploy nexus-staging:drop | ||
# env: | ||
# OSSRH_USR: ${{ secrets.OSSRH_USR }} | ||
# OSSRH_PWD: ${{ secrets.OSSRH_PWD }} |
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
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
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.juliaaano</groupId> | ||
<artifactId>payload</artifactId> | ||
<version>1.1.2-SNAPSHOT</version> | ||
<version>1.1.4-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>Payload</name> | ||
|
@@ -16,15 +17,15 @@ | |
<licenses> | ||
<license> | ||
<name>MIT License</name> | ||
<url>http://www.juliaaano.com/LICENSE</url> | ||
<url>https://www.juliaaano.com/LICENSE</url> | ||
</license> | ||
</licenses> | ||
|
||
<developers> | ||
<developer> | ||
<name>Juliano Mohr</name> | ||
<email>[email protected]</email> | ||
<organization>Juliaaano</organization> | ||
<organization>juliaaano</organization> | ||
<organizationUrl>https://www.juliaaano.com</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
@@ -215,12 +216,12 @@ | |
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
<!-- <configuration> | ||
<configuration> | ||
<gpgArguments> | ||
<arg>--pinentry-mode</arg> | ||
<arg>loopback</arg> | ||
</gpgArguments> | ||
</configuration> --> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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