Skip to content

Commit

Permalink
atualizado pom e workflow, teste release (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelPereiraa authored Jul 23, 2024
1 parent d569082 commit 32e039f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 36 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,25 @@ name: "Release Master"
on:
workflow_dispatch:
push:
branches:
- master
branches: [ "master" ]

jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- name: Check out repository
- name: Checkout repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Install Java and Maven
uses: actions/[email protected]
with:
java-version: '17'
java-version: '11'
distribution: 'temurin'
cache: maven
server-id: github

- name: Adding ssh key
uses: webfactory/[email protected]
Expand All @@ -37,18 +39,10 @@ jobs:
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
# nexus_username: ${{ secrets.nexus_username }}
# nexus_password: ${{ secrets.nexus_password }}
nexus_username: ${{ secrets.OSSRH_USERNAME }}
nexus_password: ${{ secrets.OSSRH_TOKEN }}
maven_goals_phases: clean -B release:prepare release:perform -Darguments="-DskipTests" -P ossrh

# - name: Set up Java for publishing to GitHub Packages
# uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'adopt'

- name: Publish to GitHub Packages
run: mvn --batch-mode deploy -P github
env:
Expand Down
52 changes: 28 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.wmixvideo</groupId>
<artifactId>nfe</artifactId>
<packaging>jar</packaging>
<version>4.0.57-SNAPSHOT</version>
<packaging>jar</packaging>

<name>nfe</name>
<description>Biblioteca de comunicacao de nota fiscal eletronica brasileira</description>
<url>https://github.com/wmixvideo/nfe</url>
Expand All @@ -16,24 +17,6 @@
</license>
</licenses>

<scm>
<url>[email protected]:wmixvideo/nfe.git</url>
<connection>scm:git:[email protected]:wmixvideo/nfe.git</connection>
<developerConnection>scm:git:[email protected]:wmixvideo/nfe.git</developerConnection>
<tag>HEAD</tag>
</scm>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
<axis2.version>1.7.9</axis2.version>
<slf4j.version>2.0.13</slf4j.version>
<junit.version>4.13.2</junit.version>
<commons-lang3.version>3.14.0</commons-lang3.version>
<simple-xml.version>2.7.1</simple-xml.version>
</properties>

<developers>
<developer>
<id>jefperito</id>
Expand All @@ -57,6 +40,24 @@
</developer>
</developers>

<scm>
<url>[email protected]:wmixvideo/nfe.git</url>
<connection>scm:git:[email protected]:wmixvideo/nfe.git</connection>
<developerConnection>scm:git:[email protected]:wmixvideo/nfe.git</developerConnection>
<tag>HEAD</tag>
</scm>

<properties>
<java.version>11</java.version>
<slf4j.version>2.0.13</slf4j.version>
<junit.version>4.13.2</junit.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<axis2.version>1.7.9</axis2.version>
<commons-lang3.version>3.14.0</commons-lang3.version>
<simple-xml.version>2.7.1</simple-xml.version>
</properties>

<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.santuario/xmlsec -->
<dependency>
Expand Down Expand Up @@ -192,10 +193,6 @@
<repoToken>QTRbpWiuiwIHGrc0arqKxXsAtiVoLMc5h</repoToken>
</configuration>
<dependencies>
<!--
Explicit dep on jaxb-api to avoid problems with JDK9 and later, until a new version of coveralls-maven-plugin is released.
See also https://github.com/trautonen/coveralls-maven-plugin/issues/112
-->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
Expand Down Expand Up @@ -258,7 +255,6 @@
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<!-- <nexusUrl>https://oss.sonatype.org/</nexusUrl>-->
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
Expand Down Expand Up @@ -294,6 +290,14 @@
<tagNameFormat>v@{project.version}</tagNameFormat>
<remoteTagging>false</remoteTagging>
</configuration>
<executions>
<execution>
<id>default</id>
<goals>
<goal>perform</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 32e039f

Please sign in to comment.