-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* set declared=true for ark plugin * add export for web plugin * update version to 2.2.4-SNAPSHOT * update gpg version * fix gpg * try to fix gpg error * format test action * fix release * fix release * add snapshot release action * no repository modify --------- Co-authored-by: youji.zzl <[email protected]>
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
name: Release SNAPSHOT | ||
|
||
## https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release | ||
## trigger manually | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Set up JDK 8 | ||
# uses: actions/setup-java@v3 | ||
# with: | ||
# java-version: '8' | ||
# distribution: 'temurin' | ||
# cache: maven | ||
# - name: Build with Maven | ||
# run: mvn clean install -DskipTests -B -U -e && sh ./check_format.sh | ||
release: | ||
# needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
distribution: 'temurin' | ||
cache: maven | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
- name: Build with Maven | ||
run: mvn --batch-mode deploy -DskipTests -Psnapshot | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |