diff --git a/.github/workflows/release-deploy.yml b/.github/workflows/release-deploy.yml new file mode 100644 index 0000000..854af8e --- /dev/null +++ b/.github/workflows/release-deploy.yml @@ -0,0 +1,26 @@ +name: release-deploy + +on: + push: + tags: + - "v*" + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: kamiazya/setup-graphviz@v1 + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Build with Maven + run: mvn -B install + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: false + files: | + app/target/thorp-*.jar diff --git a/.github/workflows/sonatype-deploy.yml b/.github/workflows/sonatype-deploy.yml deleted file mode 100644 index 6c0ac47..0000000 --- a/.github/workflows/sonatype-deploy.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: sonatype-deploy - -on: - push: - tags: - - "v*" - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: kamiazya/setup-graphviz@v1 - - uses: actions/checkout@v2 - - name: Set up JDK 8 - uses: actions/setup-java@v1 - with: - java-version: 8 - - name: Build with Maven - run: mvn -B install -# Disable deploy to nexus until completed conversion to Java due to missing javadoc jars with scala modules -# - name: Nexus Repo Publish -# run: | -# gpg --quiet \ -# --batch \ -# --yes \ -# --decrypt \ -# --passphrase="${{ secrets.GPG_PASSPHRASE }}" \ -# --output codesigning.asc \ -# .github/codesigning.asc.gpg -# gpg --batch \ -# --fast-import codesigning.asc -# mvn --settings .github/settings.xml \ -# -Dskip-Tests=true \ -# -P release \ -# -B \ -# deploy -# env: -# NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} -# NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} -# GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} -# GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: false - files: | - app/target/thorp-*.jar