Skip to content

Commit

Permalink
Rename maven-${version}-mvnd-mvn(39|40)-yyy to maven-mvnd-${version}-…
Browse files Browse the repository at this point in the history
…m(39|40)-yyy and fix release workflow
  • Loading branch information
gnodet committed Mar 23, 2023
1 parent bb2dd09 commit 76f8139
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 46 deletions.
78 changes: 40 additions & 38 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ jobs:
with:
name: artifacts
path: |
dist-*/target/maven-*-mvnd-*.zip
dist-*/target/maven-*-mvnd-*.tar.gz
dist-m39/target/maven-mvnd-*.zip
dist-m39/target/maven-mvnd-*.tar.gz
dist-m40/target/maven-mvnd-*.zip
dist-m40/target/maven-mvnd-*.tar.gz
source:
name: 'Build source distributions'
Expand Down Expand Up @@ -184,123 +186,123 @@ jobs:
asset_name: maven-mvnd-${{ env.VERSION }}-src.tar.gz
asset_content_type: application/tar.gz

- name: Deploy maven-mvnd-mvn39-linux-amd64.zip
- name: Deploy maven-mvnd-m39-linux-amd64.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn39-linux-amd64.zip
asset_name: maven-${{ env.VERSION }}-mvnd-mvn39-linux-amd64.zip
asset_path: artifacts/dist-m39/target/maven-mvnd-${{ env.VERSION }}-m39-linux-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-m39-linux-amd64.zip
asset_content_type: application/zip

- name: Deploy maven-mvnd-mvn39-linux-amd64.tar.gz
- name: Deploy maven-mvnd-m39-linux-amd64.tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn39-linux-amd64.tar.gz
asset_name: maven-${{ env.VERSION }}-mvnd-mvn39-linux-amd64.tar.gz
asset_path: artifacts/dist-m39/target/maven-mvnd-${{ env.VERSION }}-m39-linux-amd64.tar.gz
asset_name: maven-mvnd-${{ env.VERSION }}-m39-linux-amd64.tar.gz
asset_content_type: application/x-gzip

- name: Deploy maven-mvnd-mvn39-darwin-amd64.zip
- name: Deploy maven-mvnd-m39-darwin-amd64.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn39-darwin-amd64.zip
asset_name: maven-${{ env.VERSION }}-mvnd-mvn39-darwin-amd64.zip
asset_path: artifacts/dist-m39/target/maven-mvnd-${{ env.VERSION }}-m39-darwin-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-m39-darwin-amd64.zip
asset_content_type: application/zip

- name: Deploy maven-mvnd-mvn39-darwin-amd64.tar.gz
- name: Deploy maven-mvnd-m39-darwin-amd64.tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn39-darwin-amd64.tar.gz
asset_name: maven-${{ env.VERSION }}-mvnd-mvn39-darwin-amd64.tar.gz
asset_path: artifacts/dist-m39/target/maven-mvnd-${{ env.VERSION }}-m39-darwin-amd64.tar.gz
asset_name: maven-mvnd-${{ env.VERSION }}-m39-darwin-amd64.tar.gz
asset_content_type: application/x-gzip

- name: Deploy maven-mvnd-mvn39-windows-amd64.zip
- name: Deploy maven-mvnd-m39-windows-amd64.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn39-windows-amd64.zip
asset_name: maven-${{ env.VERSION }}-mvnd-mvn39-windows-amd64.zip
asset_path: artifacts/dist-m39/target/maven-mvnd-${{ env.VERSION }}-m39-windows-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-m39-windows-amd64.zip
asset_content_type: application/zip

- name: Deploy maven-mvnd-mvn39-windows-amd64.tar.gz
- name: Deploy maven-mvnd-m39-windows-amd64.tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn39-windows-amd64.tar.gz
asset_name: maven-${{ env.VERSION }}-mvnd-mvn39-windows-amd64.tar.gz
asset_path: artifacts/dist-m39/target/maven-mvnd-${{ env.VERSION }}-m39-windows-amd64.tar.gz
asset_name: maven-mvnd-${{ env.VERSION }}-m39-windows-amd64.tar.gz
asset_content_type: application/x-gzip

- name: Deploy maven-mvnd-mvn40-linux-amd64.zip
- name: Deploy maven-mvnd-m40-linux-amd64.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn40-linux-amd64.zip
asset_name: maven-${{ env.VERSION }}-mvnd-mvn40-linux-amd64.zip
asset_path: artifacts/dist-m40/target/maven-mvnd-${{ env.VERSION }}-m40-linux-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-m40-linux-amd64.zip
asset_content_type: application/zip

- name: Deploy maven-mvnd-mvn40-linux-amd64.tar.gz
- name: Deploy maven-mvnd-m40-linux-amd64.tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn40-linux-amd64.tar.gz
asset_name: maven-${{ env.VERSION }}-mvnd-mvn40-linux-amd64.tar.gz
asset_path: artifacts/dist-m40/target/maven-mvnd-${{ env.VERSION }}-m40-linux-amd64.tar.gz
asset_name: maven-mvnd-${{ env.VERSION }}-m40-linux-amd64.tar.gz
asset_content_type: application/x-gzip

- name: Deploy maven-mvnd-mvn40-darwin-amd64.zip
- name: Deploy maven-mvnd-m40-darwin-amd64.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn40-darwin-amd64.zip
asset_name: maven-${{ env.VERSION }}-mvnd-mvn40-darwin-amd64.zip
asset_path: artifacts/dist-m40/target/maven-mvnd-${{ env.VERSION }}-m40-darwin-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-m40-darwin-amd64.zip
asset_content_type: application/zip

- name: Deploy maven-mvnd-mvn40-darwin-amd64.tar.gz
- name: Deploy maven-mvnd-m40-darwin-amd64.tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn40-darwin-amd64.tar.gz
asset_name: maven-${{ env.VERSION }}-mvnd-mvn40-darwin-amd64.tar.gz
asset_path: artifacts/dist-m40/target/maven-mvnd-${{ env.VERSION }}-m40-darwin-amd64.tar.gz
asset_name: maven-mvnd-${{ env.VERSION }}-m40-darwin-amd64.tar.gz
asset_content_type: application/x-gzip

- name: Deploy maven-mvnd-mvn40-windows-amd64.zip
- name: Deploy maven-mvnd-m40-windows-amd64.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn40-windows-amd64.zip
asset_name: maven-${{ env.VERSION }}-mvnd-mvn40-windows-amd64.zip
asset_path: artifacts/dist-m40/target/maven-mvnd-${{ env.VERSION }}-m40-windows-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-m40-windows-amd64.zip
asset_content_type: application/zip

- name: Deploy maven-mvnd-mvn40-windows-amd64.tar.gz
- name: Deploy maven-mvnd-m40-windows-amd64.tar.gz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: artifacts/maven-${{ env.VERSION }}-mvnd-mvn40-windows-amd64.tar.gz
asset_name: maven-${{ env.VERSION }}-mvnd-mvn40-windows-amd64.tar.gz
asset_path: artifacts/dist-m40/target/maven-mvnd-${{ env.VERSION }}-m40-windows-amd64.tar.gz
asset_name: maven-mvnd-${{ env.VERSION }}-m40-windows-amd64.tar.gz
asset_content_type: application/x-gzip

2 changes: 1 addition & 1 deletion dist-m39/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</goals>
<phase>package</phase>
<configuration>
<outputDirectory>${project.build.directory}/maven-${project.version}-mvnd-m39-${os.detected.name}-${os.detected.arch}</outputDirectory>
<outputDirectory>${project.build.directory}/maven-mvnd-${project.version}-m39-${os.detected.name}-${os.detected.arch}</outputDirectory>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 2 additions & 2 deletions dist-m39/src/main/provisio/maven-distro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
</directory>
</fileSet>

<archive name="maven-${project.version}-mvnd-mvn39-${os.detected.name}-${os.detected.arch}.zip"
<archive name="maven-mvnd-${project.version}-m39-${os.detected.name}-${os.detected.arch}.zip"
executable="**/bin/mvnd"/>

<archive name="maven-${project.version}-mvnd-mvn39-${os.detected.name}-${os.detected.arch}.tar.gz"
<archive name="maven-mvnd-${project.version}-m39-${os.detected.name}-${os.detected.arch}.tar.gz"
executable="**/bin/mvnd"/>

</assembly>
2 changes: 1 addition & 1 deletion dist-m40/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</goals>
<phase>package</phase>
<configuration>
<outputDirectory>${project.build.directory}/maven-${project.version}-mvnd-m40-${os.detected.name}-${os.detected.arch}</outputDirectory>
<outputDirectory>${project.build.directory}/maven-mvnd-${project.version}-m40-${os.detected.name}-${os.detected.arch}</outputDirectory>
</configuration>
</execution>
</executions>
Expand Down
4 changes: 2 additions & 2 deletions dist-m40/src/main/provisio/maven-distro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
</directory>
</fileSet>

<archive name="maven-${project.version}-mvnd-mvn40-${os.detected.name}-${os.detected.arch}.zip"
<archive name="maven-mvnd-${project.version}-m40-${os.detected.name}-${os.detected.arch}.zip"
executable="**/bin/mvnd"/>

<archive name="maven-${project.version}-mvnd-mvn40-${os.detected.name}-${os.detected.arch}.tar.gz"
<archive name="maven-mvnd-${project.version}-m40-${os.detected.name}-${os.detected.arch}.tar.gz"
executable="**/bin/mvnd"/>

</assembly>
4 changes: 2 additions & 2 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<properties>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<mvnd.m39.home>${project.basedir}/../dist-m39/target/maven-${project.version}-mvnd-m39-${os.detected.name}-${os.detected.arch}</mvnd.m39.home>
<mvnd.m40.home>${project.basedir}/../dist-m40/target/maven-${project.version}-mvnd-m40-${os.detected.name}-${os.detected.arch}</mvnd.m40.home>
<mvnd.m39.home>${project.basedir}/../dist-m39/target/maven-mvnd-${project.version}-m39-${os.detected.name}-${os.detected.arch}</mvnd.m39.home>
<mvnd.m40.home>${project.basedir}/../dist-m40/target/maven-mvnd-${project.version}-m40-${os.detected.name}-${os.detected.arch}</mvnd.m40.home>
<preinstall.artifacts>org/apache/maven/surefire/surefire-providers/${surefire.version}
org/apache/maven/surefire/surefire-junit-platform/${surefire.version}
org/junit/platform/junit-platform-launcher/${junit-platform-launcher.version}
Expand Down

0 comments on commit 76f8139

Please sign in to comment.