build: 发布 1.5.2 版本 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Everyday Snapshot Jar To Maven | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
# schedule: | |
# - cron: "0 0,12,18 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Everyday Snapshot Jar To Maven | |
env: # Or as an environment variable | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
gpg_password: ${{ secrets.GPG_PASSWORD }} | |
ossrhUsername: ${{ secrets.OSSRH_USERNAME }} | |
ossrhPassword: ${{ secrets.OSSRH_PASSWORD }} | |
# build.gradle 脚本中已支持直接从环境变量中读取相关配置信息,因此这里可以不显式传递相关机密参数 | |
run: ./gradlew publish -Psnapshot |