Skip to content

feat(cache): 增加缓存构建结果自定义处理 #45

feat(cache): 增加缓存构建结果自定义处理

feat(cache): 增加缓存构建结果自定义处理 #45

# 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