mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-12-12 04:09:28 +08:00
⚡ 更新脚本
This commit is contained in:
parent
7cc4f67b51
commit
aca498cef1
32
.github/workflows/publish-snapshot.yml
vendored
Normal file
32
.github/workflows/publish-snapshot.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: Publish Snapshot
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
pull_request:
|
||||
branches: [ dev ]
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
cache: 'maven'
|
||||
java-version: 17
|
||||
server-id: oss
|
||||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_PASSWORD
|
||||
gpg-passphrase: MAVEN_GPG_PASSWORD
|
||||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
|
||||
- name: Publish to the Maven Central Repository
|
||||
run: |
|
||||
chmod +x ./deploy.sh
|
||||
./deploy.sh
|
||||
env:
|
||||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
|
||||
MAVEN_GPG_PASSWORD: ${{ secrets.MAVEN_GPG_PASSWORD }}
|
8
.github/workflows/test-and-build.yml
vendored
8
.github/workflows/test-and-build.yml
vendored
@ -2,16 +2,16 @@ name: Java CI
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
buildOnJava8:
|
||||
name: build on java8
|
||||
buildOnJava17:
|
||||
name: build on java17
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 8
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
cache: 'maven'
|
||||
java-version: 8
|
||||
java-version: 17
|
||||
- name: Build with Maven
|
||||
run: mvn package
|
||||
|
Loading…
Reference in New Issue
Block a user