Skip to content

Commit

Permalink
Add daily deploy snapshot - change deploy plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
mocenas committed Nov 28, 2024
1 parent 8324788 commit 420ada6
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 11 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/daily-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Daily deploy snapshot"
on:
workflow_dispatch:
schedule:
- cron: '0 23 * * *'

jobs:
release:
runs-on: ubuntu-latest
name: release

steps:
- uses: actions/checkout@v4

- name: Install JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
check-latest: true
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Maven release 999-SNAPSHOT
run: |
mvn -B versions:set -DnewVersion=999-SNAPSHOT
mvn -B -DskipTests -DskipITs \
-DretryFailedDeploymentCount=3 \
-Prelease,framework \
clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

- name: Delete Local Artifacts From Cache
shell: bash
run: rm -r ~/.m2/repository/io/quarkus/qe
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
distribution: 'temurin'
java-version: 17
check-latest: true
server-id: ossrh
server-id: oss.sonatype
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
Expand Down
22 changes: 12 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -622,16 +622,18 @@
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<serverId>ossrh</serverId>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes>
</configuration>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.3</version>
<executions>
<execution>
<id>deploy-release</id>
<phase>deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 420ada6

Please sign in to comment.