在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):samuelmeuli/action-maven-publish开源软件地址(OpenSource Url):https://github.com/samuelmeuli/action-maven-publish开源编程语言(OpenSource Language):JavaScript 71.5%开源软件介绍(OpenSource Introduction):Maven Publish ActionGitHub Action for automatically publishing Maven packages OverviewThis action…
It will also use the SetupDeploymentIt's recommended to publish using the Nexus Staging Maven Plugin, which greatly simplifies the process. You can follow this guide for a simple configuration. Make sure your project is correctly configured for deployment before continuing with the next step. WorkflowSecretsIn your project's GitHub repository, go to Settings → Secrets. On this page, set the following variables:
Signing your artifact using GPG is optional, but recommended. If you choose to use GPG, add the following secrets:
If you sign your artifacts, make sure the Workflow fileCreate a GitHub workflow file (e.g. name: Release
# Run workflow on commits to the `master` branch
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-18.04
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 11
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }} The action will now run every time you push to ConfigurationIn addition to the input variables listed above, the action can be configured with the following options:
DevelopmentSuggestions and contributions are always welcome! Please discuss larger changes via issue before submitting a pull request. Related
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论