Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use maven-mvnd as a distribution name #638

Merged
merged 1 commit into from
May 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
name: artifacts
path: |
dist/target/mvnd-*.zip
dist/target/maven-mvnd-*.zip

source:
name: 'Build source distributions'
Expand Down Expand Up @@ -99,8 +99,8 @@ jobs:
with:
name: artifacts
path: |
target/mvnd-*.zip
target/mvnd-*.tar.gz
target/maven-mvnd-*.zip
target/maven-mvnd-*.tar.gz

release:
runs-on: ubuntu-18.04
Expand Down Expand Up @@ -146,52 +146,52 @@ jobs:
draft: true
prerelease: false

- name: Deploy mvnd-src.zip
- name: Deploy maven-mvnd-src.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/mvnd-${{ env.VERSION }}-src.zip
asset_name: mvnd-${{ env.VERSION }}-src.zip
asset_path: artifacts/maven-mvnd-${{ env.VERSION }}-src.zip
asset_name: maven-mvnd-${{ env.VERSION }}-src.zip
asset_content_type: application/zip

- name: Deploy mvnd-src.tar.gz
- name: Deploy maven-mvnd-src.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/mvnd-${{ env.VERSION }}-src.tar.gz
asset_name: mvnd-${{ env.VERSION }}-src.tar.gz
asset_path: artifacts/maven-mvnd-${{ env.VERSION }}-src.tar.gz
asset_name: maven-mvnd-${{ env.VERSION }}-src.tar.gz
asset_content_type: application/tar.gz

- name: Deploy mvnd-linux-amd64.zip
- name: Deploy maven-mvnd-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/mvnd-${{ env.VERSION }}-linux-amd64.zip
asset_name: mvnd-${{ env.VERSION }}-linux-amd64.zip
asset_path: artifacts/maven-mvnd-${{ env.VERSION }}-linux-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-linux-amd64.zip
asset_content_type: application/zip

- name: Deploy mvnd-darwin-amd64.zip
- name: Deploy maven-mvnd-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/mvnd-${{ env.VERSION }}-darwin-amd64.zip
asset_name: mvnd-${{ env.VERSION }}-darwin-amd64.zip
asset_path: artifacts/maven-mvnd-${{ env.VERSION }}-darwin-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-darwin-amd64.zip
asset_content_type: application/zip

- name: Deploy mvnd-windows-amd64.zip
- name: Deploy maven-mvnd-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/mvnd-${{ env.VERSION }}-windows-amd64.zip
asset_name: mvnd-${{ env.VERSION }}-windows-amd64.zip
asset_path: artifacts/maven-mvnd-${{ env.VERSION }}-windows-amd64.zip
asset_name: maven-mvnd-${{ env.VERSION }}-windows-amd64.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion dist/src/main/provisio/maven-distro.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@
</directory>
</fileSet>

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

</assembly>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ limitations under the License.</inlineHeader>
<goal>single</goal>
</goals>
<configuration>
<finalName>maven-mvnd-${project.version}</finalName>
<descriptors>
<descriptor>src/main/assembly/src.xml</descriptor>
</descriptors>
Expand Down